Add LBMs to update to new node formspecs of 0.60.0

This commit is contained in:
Wuzzy 2020-03-29 14:35:01 +02:00
parent ed63374480
commit e9f259881f
6 changed files with 92 additions and 29 deletions

View file

@ -417,3 +417,15 @@ if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_furnaces:furnace", "nodes", "mcl_furnaces:furnace_active")
end
-- Legacy
minetest.register_lbm({
label = "Update furnace formspecs (0.60.0",
name = "mcl_furnaces:update_formspecs_0_60_0",
-- Only update inactive furnaces because active ones should update themselves
nodenames = { "mcl_furnaces:furnace" },
run_at_every_load = false,
action = function(pos, node)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", inactive_formspec)
end,
})