mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-26 01:50:25 +01:00
add lbm to upgrade old bones
This commit is contained in:
parent
6deb010475
commit
c5fe22f7ec
@ -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,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user