diff options
author | Jeija <norrepli@gmail.com> | 2015-02-25 21:01:00 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2015-02-25 21:01:00 +0100 |
commit | aa5538a7348f56b654b9204bf0644c11ee5f8b1d (patch) | |
tree | 5afa8ff3ffcaa8eba6dbbdd0bd628948cd7cc2c2 | |
parent | eb416475cc511ebfa91d287f911afa9d66162199 (diff) | |
download | mesecons-aa5538a7348f56b654b9204bf0644c11ee5f8b1d.tar mesecons-aa5538a7348f56b654b9204bf0644c11ee5f8b1d.tar.gz mesecons-aa5538a7348f56b654b9204bf0644c11ee5f8b1d.tar.bz2 mesecons-aa5538a7348f56b654b9204bf0644c11ee5f8b1d.tar.xz mesecons-aa5538a7348f56b654b9204bf0644c11ee5f8b1d.zip |
Fix pressure plates calling receptor_on on a regular basis
-rw-r--r-- | mesecons_pressureplates/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 0fda1f3..b00db9a 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -22,7 +22,7 @@ pp_on_timer = function (pos, elapsed) if objs[1] == nil and node.name == basename .. "_on" then minetest.add_node(pos, {name = basename .. "_off"}) mesecon.receptor_off(pos, mesecon.rules.pplate) - else + elseif node.name == basename .. "_off" then for k, obj in pairs(objs) do local objpos = obj:getpos() if objpos.y > pos.y-1 and objpos.y < pos.y then |