mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 13:56:02 +02:00
Don't trigger an "off" event to itself when luacontroller turns a port off
I hope this doesn't break anyone's setup.
This commit is contained in:
@ -598,7 +598,7 @@ function mesecon.is_powered(pos, rule)
|
||||
local nn = minetest.get_node(np)
|
||||
if (mesecon.is_conductor_on (nn, mesecon.invertRule(rname))
|
||||
or mesecon.is_receptor_on (nn.name)) then
|
||||
sourcepos.insert(np)
|
||||
table.insert(sourcepos, np)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user