forked from minetest-mods/mesecons
Fix a bug reported here: http://minetest.net/forum/viewtopic.php?pid=56152#p56152
This commit is contained in:
parent
a55874b5d2
commit
5540fcbcb3
|
@ -6,8 +6,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on)
|
||||||
description=name.." Lightstone",
|
description=name.." Lightstone",
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
action_on = function (pos, node)
|
action_on = function (pos, node)
|
||||||
minetest.env:add_node(pos, {name="mesecons_lightstone:lightstone_" .. name .. "_on"})
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_" .. name .. "_on")
|
||||||
mesecon:receptor_on(pos)
|
|
||||||
end
|
end
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
|
@ -19,8 +18,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on)
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = LIGHT_MAX-2,
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
action_off = function (pos, node)
|
action_off = function (pos, node)
|
||||||
minetest.env:add_node(pos, {name="mesecons_lightstone:lightstone_" .. name .. "_off"})
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_" .. name .. "_off")
|
||||||
mesecon:receptor_off(pos)
|
|
||||||
end
|
end
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user