diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 11156bf9..e3298720 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -300,7 +300,7 @@ function default.dig_up(pos, node, digger, max_height) max_height = max_height or 100 for y = pos.y + 1, pos.y + max_height do - local up_pos = { x = pos.x, y = y, z = pos.z} + local up_pos = vector.new(pos.x, y, pos.z) local up_node = minetest.get_node(up_pos) if up_node.name == node.name then in_dig_up = true