diff options
author | Jeija <jeija@mesecons.net> | 2014-11-21 21:43:28 +0100 |
---|---|---|
committer | Jeija <jeija@mesecons.net> | 2014-11-21 21:43:28 +0100 |
commit | dcf1f799c59b2b777c88a9127d0e8d358be0e7cd (patch) | |
tree | cbaa4c607d4e006d1900212d125cfb69f5507645 | |
parent | d325292291ebc0bdb10ebc73b235b9569842e003 (diff) | |
download | mesecons-dcf1f799c59b2b777c88a9127d0e8d358be0e7cd.tar mesecons-dcf1f799c59b2b777c88a9127d0e8d358be0e7cd.tar.gz mesecons-dcf1f799c59b2b777c88a9127d0e8d358be0e7cd.tar.bz2 mesecons-dcf1f799c59b2b777c88a9127d0e8d358be0e7cd.tar.xz mesecons-dcf1f799c59b2b777c88a9127d0e8d358be0e7cd.zip |
Fix #184, Fix #186, Fix #187
Just some minor issues like dead code.
-rw-r--r-- | mesecons/actionqueue.lua | 3 | ||||
-rw-r--r-- | mesecons_luacontroller/init.lua | 1 | ||||
-rw-r--r-- | mesecons_pistons/init.lua | 9 |
3 files changed, 7 insertions, 6 deletions
diff --git a/mesecons/actionqueue.lua b/mesecons/actionqueue.lua index a5daf88..e0b8c65 100644 --- a/mesecons/actionqueue.lua +++ b/mesecons/actionqueue.lua @@ -44,7 +44,8 @@ end -- However, even that does not work in some cases, that's why we delay the time the globalsteps -- start to be execute by 5 seconds local get_highest_priority = function (actions) - local highestp = -1, highesti + local highestp = -1 + local highesti for i, ac in ipairs(actions) do if ac.priority > highestp then highestp = ac.priority diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index f4869b5..6fb5d03 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -477,7 +477,6 @@ minetest.register_node(nodename, { reset_meta(pos, fields.code, err) end end, - on_timer = handle_timer, sounds = default.node_sound_stone_defaults(), mesecons = mesecons, digiline = digiline, diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 7780fc9..efc18f3 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -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, |