mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-08-20 04:54:11 +02:00
Fix Mesecon Torch
This commit is contained in:
parent
5f947ae340
commit
3ed12458d2
@ -67,7 +67,8 @@ minetest.register_abm({
|
||||
end
|
||||
|
||||
local postc = {x=pos.x-pa.x, y=pos.y-pa.y, z=pos.z-pa.z}
|
||||
if mesecon:is_power_on(postc)==1 then
|
||||
if mesecon:is_power_on(postc) then
|
||||
print ("LAWL")
|
||||
if node.name ~= "mesecons_torch:mesecon_torch_off" then
|
||||
minetest.env:add_node(pos, {name="mesecons_torch:mesecon_torch_off",param2=node.param2})
|
||||
mesecon:receptor_off(pos, rules_string)
|
||||
|
Loading…
Reference in New Issue
Block a user