Merge 55f9d4626ecaa707435ecba094a9dfc51f165db4 into 42efc7e47c8e89ed5436261786bbfa1740300730

This commit is contained in:
Yutao Yuan 2017-04-25 05:14:48 +00:00 committed by GitHub
commit 30cb224fdd

View File

@ -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