Skip to content

Commit

Permalink
add mesecons interface to world anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 18, 2020
1 parent c26eafe commit b0e45d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions technic/machines/other/anchor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,16 @@ minetest.register_node("technic:admin_anchor", {
end
set_display(pos, meta)
end,
mesecons = {
effector = {
action_on = function(pos)
local meta = minetest.get_meta(pos)
forceload_on(pos, meta)
end,
action_off = function(pos)
local meta = minetest.get_meta(pos)
forceload_off(pos, meta)
end
}
}
})

0 comments on commit b0e45d4

Please sign in to comment.