Fix behaviour on decabling a forcefield emitter

This commit is contained in:
Zefram 2014-08-01 17:30:21 +01:00
parent 88bdac62e3
commit 2a7ee141eb

@ -181,7 +181,11 @@ minetest.register_node("technic:forcefield_emitter_on", {
end, end,
mesecons = mesecons, mesecons = mesecons,
technic_run = run, technic_run = run,
technic_disabled_machine_name = "technic:forcefield_emitter", technic_on_disable = function (pos, node)
local meta = minetest.get_meta(pos)
update_forcefield(pos, meta:get_int("range"), false)
technic.swap_node(pos, "technic:forcefield_emitter_off")
end,
}) })
minetest.register_node("technic:forcefield", { minetest.register_node("technic:forcefield", {