mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-02 07:43:48 +01:00
Fix crash when piston got pushed next to redstone
parent
899acaab0e
commit
45c385628a
@ -781,7 +781,7 @@ local piston_get_stopper = function (node, dir, stack, stackid)
|
|||||||
|
|
||||||
if minetest.registered_nodes[node.name].mesecons_piston.pusher == pushernode.name then
|
if minetest.registered_nodes[node.name].mesecons_piston.pusher == pushernode.name then
|
||||||
for _, s in ipairs(stack) do
|
for _, s in ipairs(stack) do
|
||||||
if mesecon.cmpPos(s.pos, pusherpos) -- pusher is also to be pushed
|
if vector.equals(s.pos, pusherpos) -- pusher is also to be pushed
|
||||||
and s.node.param2 == node.param2 then
|
and s.node.param2 == node.param2 then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user