Just some minor issues like dead code.
This commit is contained in:
Jeija
2014-11-21 21:43:28 +01:00
parent d325292291
commit dcf1f799c5
3 changed files with 7 additions and 6 deletions

View File

@ -56,14 +56,15 @@ end
local piston_remove_pusher = function(pos, node)
pistonspec = minetest.registered_nodes[node.name].mesecons_piston
if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly)
return
end
dir = piston_get_direction(pistonspec.dir, node)
local pusherpos = mesecon:addPosRule(pos, dir)
local pushername = minetest.get_node(pusherpos).name
-- make sure there actually is a pusher (for compatibility reasons mainly)
if pushername ~= pistonspec.pusher then
return
end
minetest.remove_node(pusherpos)
minetest.sound_play("piston_retract", {
pos = pos,