0
0
Fork 0

Fix pressure plates constantly firing signals

This commit is contained in:
Wuzzy 2017-07-31 02:14:11 +02:00
parent 096744dc6c
commit a218a7c982
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pp_on_timer = function (pos, elapsed)
if not mesecon:connected_to_receptor(two_below) then
mesecon:turnoff(two_below)
end
else
elseif node.name == ppspec.offstate then
for k, obj in pairs(objs) do
local objpos = obj:getpos()
if objpos.y > pos.y-1 and objpos.y < pos.y then