add lbm to upgrade old bones

This commit is contained in:
FaceDeer 2020-02-02 22:57:10 -07:00
parent 6deb010475
commit c5fe22f7ec
1 changed files with 12 additions and 0 deletions

View File

@ -135,3 +135,15 @@ bones_loot.place_bones = function(pos, loot_type, max_stacks, infotext, exclusiv
end
end
end
minetest.register_lbm({
label = "Repair underworld bones formspec",
name = "bones_loot:repair_underworld_bones_formspec",
nodenames = {"bones:bones"},
action = function(pos, node)
local meta = minetest.get_meta(pos)
if not meta:get("formspec") then
meta:set_string("formspec", bones_formspec)
end
end,
})