Follow lua_api.md specification

This commit is contained in:
1F616EMO 2024-06-17 21:20:52 +08:00
parent 3e2deae1c8
commit 0e79158f15
No known key found for this signature in database
GPG key ID: EF52EFA8E05859B2

View file

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