forked from Mirrorlandia_minetest/mesecons
Fix Mesecon Torch
This commit is contained in:
parent
3ed12458d2
commit
dbaafc538c
@ -68,7 +68,6 @@ minetest.register_abm({
|
|||||||
|
|
||||||
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) 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user