Navigation Menu

Skip to content

Commit

Permalink
Fix pressure plates calling receptor_on on a regular basis
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeija committed Feb 25, 2015
1 parent eb41647 commit aa5538a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_pressureplates/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit aa5538a

Please sign in to comment.