mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-12 07:58:32 +02:00
Bugfix, wires sometimes turned off for no reason
This commit is contained in:
parent
f114cb8ddc
commit
9019a4aff7
@ -93,7 +93,7 @@ function mesecon:receptor_off(pos, rules)
|
||||
for _, rule in ipairs(rules) do
|
||||
local np = mesecon:addPosRule(pos, rule)
|
||||
local link, rulename = mesecon:rules_link(pos, np, rules)
|
||||
if link then
|
||||
if link and not mesecon:connected_to_receptor(np) then
|
||||
mesecon:turnoff(np, rulename)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user