diff options
author | Zefram <zefram@fysh.org> | 2014-08-01 17:30:21 +0100 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2014-08-01 17:30:21 +0100 |
commit | 2a7ee141ebe26c7a7afe08e6ef3db67467ec9cd9 (patch) | |
tree | 2df4acf4fb74f2dfe7619d671d916f37c06d732d | |
parent | 88bdac62e3f36c1125c82b44e2bc6fd718e05322 (diff) |
Fix behaviour on decabling a forcefield emitter
-rw-r--r-- | technic/machines/HV/forcefield.lua | 6 |
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", { |