From b001a679799bdc7d08eabcd1300271d0e1357b0a Mon Sep 17 00:00:00 2001
From: Zefram <zefram@fysh.org>
Date: Wed, 13 Aug 2014 20:07:53 +0200
Subject: [PATCH] Administrative world anchor

---
 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 @@
 	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", {

--
Gitblit v1.8.0