summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/machines/HV/forcefield.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/technic/machines/HV/forcefield.lua b/technic/machines/HV/forcefield.lua
index f84cdb4..0e530e0 100644
--- a/technic/machines/HV/forcefield.lua
+++ b/technic/machines/HV/forcefield.lua
@@ -181,7 +181,11 @@ minetest.register_node("technic:forcefield_emitter_on", {
end,
mesecons = mesecons,
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", {