1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-02 23:00:21 +02:00

Get rid of recursive call in default.dig_up (#3133)

This commit is contained in:
1F616EMO~nya
2024-09-09 04:09:30 +08:00
committed by GitHub
parent 7967f77f3b
commit b23c44d980
2 changed files with 30 additions and 5 deletions

View File

@ -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