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

このコミットが含まれているのは:
1F616EMO~nya
2024-09-09 04:09:30 +08:00
committed by GitHub
コミット b23c44d980
2個のファイルの変更30行の追加5行の削除

ファイルの表示

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