summaryrefslogtreecommitdiff
path: root/mesecons_torch
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_torch')
-rw-r--r--mesecons_torch/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua
index cfdac11..169eb64 100644
--- a/mesecons_torch/init.lua
+++ b/mesecons_torch/init.lua
@@ -67,7 +67,7 @@ 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
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)