fix error in decomposing leaves placement.

one place accidentally used the position of the placed node, when it
should have used the position below that.
This commit is contained in:
trans_soup 2023-10-21 11:47:12 +02:00
parent bab117c98c
commit 8259231013

View file

@ -77,7 +77,7 @@ local function after_place_stack (pos)
local below = pos + blockgame.vector.dirs.down
if check_decompose(below) then
local node = minetest.get_node(pos)
local below_node = minetest.get_node(pos)
local below_node = minetest.get_node(below)
local def = minetest.registered_nodes[node.name]
local below_def = minetest.registered_nodes[below_node.name]