Skip to content

Commit 284d648

Browse files
committed
Merge branch 'fork-20240617-dig_up-no-recursive' into fork-master
2 parents e06369b + 0b006fc commit 284d648

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mods/default/functions.lua

+6
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@ minetest.register_abm({
294294
--
295295

296296
local in_dig_up = false
297+
298+
---Find all nodes above this one that is the same, then dig them all
299+
---@param pos vector The position of the base node
300+
---@param node { name: string, param1: integer, param2: integer } Node table of the base node
301+
---@param digger ObjectRef The object (e.g. player) digging the node
302+
---@param max_height The maximum height to search for, excluding the base node
297303
function default.dig_up(pos, node, digger, max_height)
298304
if in_dig_up then return end -- Do not recurse
299305
if digger == nil then return end

0 commit comments

Comments
 (0)