Fix crash when pushing a turned-on piston

This commit is contained in:
Carter Kolwey
2017-03-04 09:39:40 +01:00
committed by Jeija
parent 774aac6e90
commit c7136b72cb
+2 -2
View File
@@ -305,8 +305,8 @@ local piston_up_down_get_stopper = function (node, dir, stack, stackid)
end
local piston_get_stopper = function (node, dir, stack, stackid)
pistonspec = minetest.registered_nodes[node.name].mesecons_piston
dir = piston_get_direction(pistonspec.dir, node)
local pistonspec = minetest.registered_nodes[node.name].mesecons_piston
local dir = pistonspec.dir(node)
local pusherpos = vector.add(stack[stackid].pos, dir)
local pushernode = minetest.get_node(pusherpos)