mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Let mods choose a forceload limit (#13002)
This commit is contained in:
parent
b3ffc4b327
commit
f80ea73bfb
3 changed files with 11 additions and 5 deletions
|
@ -6532,12 +6532,16 @@ Misc.
|
|||
* You may want to cache and call the old function to allow multiple mods to
|
||||
change knockback behavior.
|
||||
|
||||
* `minetest.forceload_block(pos[, transient])`
|
||||
* `minetest.forceload_block(pos[, transient[, limit]])`
|
||||
* forceloads the position `pos`.
|
||||
* returns `true` if area could be forceloaded
|
||||
* If `transient` is `false` or absent, the forceload will be persistent
|
||||
(saved between server runs). If `true`, the forceload will be transient
|
||||
(not saved between server runs).
|
||||
* `limit` is an optional limit on the number of blocks that can be
|
||||
forceloaded at once. If `limit` is negative, there is no limit. If it is
|
||||
absent, the limit is the value of the setting `"max_forceloaded_blocks"`.
|
||||
If the call would put the number of blocks over the limit, the call fails.
|
||||
|
||||
* `minetest.forceload_free_block(pos[, transient])`
|
||||
* stops forceloading the position `pos`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue