From 45c385628a4ec76855f8a9513c7050a77032208e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Nov 2017 08:04:09 +0100 Subject: [PATCH] Fix crash when piston got pushed next to redstone --- mods/ITEMS/REDSTONE/mesecons_pistons/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua b/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua index 3729a014a..d346e41f2 100644 --- a/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_pistons/init.lua @@ -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 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 return false end