mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 13:11:41 -04:00
Documentation of new function
This commit is contained in:
parent
6d61b5e38d
commit
0b006fccf9
1 changed files with 6 additions and 0 deletions
|
@ -294,6 +294,12 @@ minetest.register_abm({
|
||||||
--
|
--
|
||||||
|
|
||||||
local in_dig_up = false
|
local in_dig_up = false
|
||||||
|
|
||||||
|
---Find all nodes above this one that is the same, then dig them all
|
||||||
|
---@param pos vector The position of the base node
|
||||||
|
---@param node { name: string, param1: integer, param2: integer } Node table of the base node
|
||||||
|
---@param digger ObjectRef The object (e.g. player) digging the node
|
||||||
|
---@param max_height The maximum height to search for, excluding the base node
|
||||||
function default.dig_up(pos, node, digger, max_height)
|
function default.dig_up(pos, node, digger, max_height)
|
||||||
if in_dig_up then return end -- Do not recurse
|
if in_dig_up then return end -- Do not recurse
|
||||||
if digger == nil then return end
|
if digger == nil then return end
|
||||||
|
|
Loading…
Add table
Reference in a new issue