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:
@ -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
|
||||
|
Reference in New Issue
Block a user