Add LBMs to update to new node formspecs of 0.60.0
This commit is contained in:
parent
ed63374480
commit
e9f259881f
6 changed files with 92 additions and 29 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue