mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-23 11:23:45 +01:00
Fix pressure plates constantly firing signals
parent
096744dc6c
commit
a218a7c982
@ -26,7 +26,7 @@ pp_on_timer = function (pos, elapsed)
|
|||||||
if not mesecon:connected_to_receptor(two_below) then
|
if not mesecon:connected_to_receptor(two_below) then
|
||||||
mesecon:turnoff(two_below)
|
mesecon:turnoff(two_below)
|
||||||
end
|
end
|
||||||
else
|
elseif node.name == ppspec.offstate then
|
||||||
for k, obj in pairs(objs) do
|
for k, obj in pairs(objs) do
|
||||||
local objpos = obj:getpos()
|
local objpos = obj:getpos()
|
||||||
if objpos.y > pos.y-1 and objpos.y < pos.y then
|
if objpos.y > pos.y-1 and objpos.y < pos.y then
|
||||||
|
Loading…
Reference in New Issue
Block a user