forked from Mirrorlandia_minetest/mesecons
Bugfix: Also deactivate the block two below when digging a pressure plate
This commit is contained in:
parent
c9e89189eb
commit
2848df007e
@ -88,6 +88,12 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
|
||||
on_construct = function(pos)
|
||||
minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
|
||||
end,
|
||||
after_dig_node = function(pos)
|
||||
local two_below = mesecon:addPosRule(pos, {x = 0, y = -2, z = 0})
|
||||
if not mesecon:connected_to_receptor(two_below) then
|
||||
mesecon:turnoff(two_below)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
Loading…
Reference in New Issue
Block a user