1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 18:25:21 +01:00

Fix indentation

This commit is contained in:
Bradley Pierce
2024-01-27 10:38:30 -05:00
parent caee8eeff3
commit 9bb080b0a9
10 changed files with 154 additions and 152 deletions

View File

@@ -3897,8 +3897,9 @@ For example:
* X1, Y1, ... Z2 are coordinates
* `relative_to`: Optional. If set to a position, each coordinate
can use the tilde notation for relative positions
* Tilde notation: "~": Relative coordinate
"~<number>": Relative coordinate plus <number>
* Tilde notation:
* `"~"`: Relative coordinate
* `"~<number>"`: Relative coordinate plus `<number>`
* Example: `minetest.string_to_area("(1,2,3) (~5,~-5,~)", {x=10,y=10,z=10})`
returns `{x=1,y=2,z=3}, {x=15,y=5,z=10}`
* `minetest.formspec_escape(string)`: returns a string
@@ -5538,9 +5539,10 @@ Call these functions only at load time!
giving a type - use this for custom damage types.
* `punch`: Was punched. `reason.object` will hold the puncher, or nil if none.
* `fall`
* `node_damage`: `damage_per_second` from a neighboring node.
`reason.node` will hold the node name or nil.
`reason.node_pos` will hold the position of the node
* `node_damage`:
* `damage_per_second` from a neighboring node.
* `reason.node` will hold the node name or nil.
* `reason.node_pos` will hold the position of the node
* `drown`
* `respawn`
* Any of the above types may have additional fields from mods.

View File

@@ -206,9 +206,9 @@ Passed to `HTTPApiTable.fetch` callback. Returned by
* `core.show_path_select_dialog(formname, caption, is_file_select)`
* shows a path select dialog
* `formname` is base name of dialog response returned in fields
- if dialog was accepted `"_accepted"`
* if dialog was accepted `"_accepted"`
will be added to fieldname containing the path
- if dialog was canceled `"_cancelled"`
* if dialog was canceled `"_cancelled"`
will be added to fieldname value is set to formname itself
* if `is_file_select` is `true`, a file and not a folder will be selected
* returns nil or selected file/folder
@@ -420,10 +420,10 @@ For a complete list of methods of the `Settings` object see
the result of `async_job` is passed to this function
## Limitations of Async Operations
* No access to global lua variables, don't even try
* Limited set of available functions
e.g. No access to functions modifying menu like `core.start`, `core.close`,
`core.show_path_select_dialog`
* No access to global lua variables, don't even try
* Limited set of available functions, e.g. No access to functions modifying menu
like `core.start`, `core.close`, `core.show_path_select_dialog`