mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-14 08:30:34 +01:00
Merge 55f9d4626ecaa707435ecba094a9dfc51f165db4 into 42efc7e47c8e89ed5436261786bbfa1740300730
This commit is contained in:
commit
30cb224fdd
@ -107,3 +107,16 @@ minetest.register_node("technic:admin_anchor", {
|
||||
set_display(pos, meta)
|
||||
end,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("mesecons_mvps") then
|
||||
mesecon.register_on_mvps_move(function(moved_nodes)
|
||||
for _, n in ipairs(moved_nodes) do
|
||||
if n.node.name == "technic:admin_anchor" then
|
||||
local meta = minetest.get_meta(n.pos)
|
||||
if meta:get_int("enabled") ~= 0 then
|
||||
forceload_on(n.pos, meta)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user