mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-24 16:15:03 -04:00
Get rid of recursive call in default.dig_up (#3133)
This commit is contained in:
parent
7967f77f3b
commit
b23c44d980
2 changed files with 30 additions and 5 deletions
|
@ -1217,3 +1217,11 @@ These can be influenced using this API.
|
|||
* `player`: ObjectRef of the relevant player
|
||||
* You can override this function to change the weather effects by simply returning different values.
|
||||
Setting `clouds` or `lighting` in the result table to `nil` will *prevent* those from changing.
|
||||
|
||||
Utilities
|
||||
---------
|
||||
|
||||
`default.dig_up(pos, node, digger, max_height)`
|
||||
|
||||
* Find all nodes above `pos` that is the same, then dig them all
|
||||
* `max_height` Maximum number of nodes to iterate. Default: 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue