diff options
-rw-r--r-- | mesecons_torch/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua index cfdac11..dc1368a 100644 --- a/mesecons_torch/init.lua +++ b/mesecons_torch/init.lua @@ -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) |