fix formspec issue in admin anchor and set meta-fields in mesecons effector

fixes #72
This commit is contained in:
BuckarooBanzay 2020-07-23 13:50:03 +02:00
parent 6f83cb892c
commit 6b3e19e734

View File

@ -110,11 +110,15 @@ minetest.register_node("technic:admin_anchor", {
effector = { effector = {
action_on = function(pos) action_on = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_int("enabled", 1)
forceload_on(pos, meta) forceload_on(pos, meta)
set_display(pos, meta)
end, end,
action_off = function(pos) action_off = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_int("enabled", 0)
forceload_off(meta) forceload_off(meta)
set_display(pos, meta)
end end
} }
} }