Fix Mesecon Torch

master
Jeija 2012-04-02 10:42:01 +02:00
parent 5f947ae340
commit 3ed12458d2
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ minetest.register_abm({
end end
local postc = {x=pos.x-pa.x, y=pos.y-pa.y, z=pos.z-pa.z} 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 if node.name ~= "mesecons_torch:mesecon_torch_off" then
minetest.env:add_node(pos, {name="mesecons_torch:mesecon_torch_off",param2=node.param2}) minetest.env:add_node(pos, {name="mesecons_torch:mesecon_torch_off",param2=node.param2})
mesecon:receptor_off(pos, rules_string) mesecon:receptor_off(pos, rules_string)