mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-15 23:10:41 +01:00
fix formspec issue in admin anchor and set meta-fields in mesecons effector
fixes #72
This commit is contained in:
parent
6f83cb892c
commit
6b3e19e734
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user