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:
Jeija
2014-11-29 10:56:09 +01:00
parent 2a51e40af9
commit d2373eb605
2 changed files with 33 additions and 2 deletions

View File

@ -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