Skip to content

Commit

Permalink
fix formspec issue in admin anchor and set meta-fields in mesecons ef…
Browse files Browse the repository at this point in the history
…fector

fixes #72
  • Loading branch information
BuckarooBanzay committed Jul 23, 2020
1 parent 6f83cb8 commit 6b3e19e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions technic/machines/other/anchor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,15 @@ minetest.register_node("technic:admin_anchor", {
effector = {
action_on = function(pos)
local meta = minetest.get_meta(pos)
meta:set_int("enabled", 1)
forceload_on(pos, meta)
set_display(pos, meta)
end,
action_off = function(pos)
local meta = minetest.get_meta(pos)
meta:set_int("enabled", 0)
forceload_off(meta)
set_display(pos, meta)
end
}
}
Expand Down

0 comments on commit 6b3e19e

Please sign in to comment.