merge beacon-branch into fork beacon branch #7

Merged
chmodsayshello merged 453 commits from VoxeLibre/VoxeLibre:beacons into beacon-"fork" 2022-07-23 11:30:49 +02:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit 909aa71dd3 - Show all commits

View File

@ -114,6 +114,10 @@ function mcl_armor.register_set(def)
for k, v in pairs(element_groups) do
groups[k] = v
end
local upgrade_item = nil
if itemstring:find("_diamond") then
upgrade_item = itemstring:gsub("_diamond","_netherite")
end
minetest.register_tool(itemstring, {
description = S(def.description .. " " .. (descriptions[name] or element.description)),
@ -134,7 +138,7 @@ function mcl_armor.register_set(def)
_mcl_armor_element = name,
_mcl_armor_texture = textures[name] or modname .. "_" .. itemname .. ".png",
_mcl_upgradable = def._mcl_upgradable,
_mcl_upgrade_item = itemstring:gsub("_diamond","_netherite")
_mcl_upgrade_item = upgrade_item
})
if def.craft_material then