diff options
author | Jeija <norrepli@gmail.com> | 2012-04-02 10:42:01 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-04-02 10:42:01 +0200 |
commit | 3ed12458d2cbc2ca453ab0452236f24b73fe240d (patch) | |
tree | 381f665362847931dee579c438f17f15eb60a621 | |
parent | 5f947ae3401f3c1553a2acde95e1731fb804d856 (diff) | |
download | mesecons-3ed12458d2cbc2ca453ab0452236f24b73fe240d.tar mesecons-3ed12458d2cbc2ca453ab0452236f24b73fe240d.tar.gz mesecons-3ed12458d2cbc2ca453ab0452236f24b73fe240d.tar.bz2 mesecons-3ed12458d2cbc2ca453ab0452236f24b73fe240d.tar.xz mesecons-3ed12458d2cbc2ca453ab0452236f24b73fe240d.zip |
Fix Mesecon Torch
-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) |