1
0
Fork 0

loop through tools instead of items

This commit is contained in:
chmodsayshello 2023-06-07 17:12:02 +02:00
parent b154f2def1
commit 483285a612
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ mcl_armor_trims = {
local function define_items()
local register_list = {}
for itemname, itemdef in pairs(minetest.registered_items) do
for itemname, itemdef in pairs(minetest.registered_tools) do
if itemdef._mcl_armor_texture and type(itemdef._mcl_armor_texture) == "string" and not mcl_armor_trims.blacklisted[itemname] then
for _, overlay in pairs(mcl_armor_trims.overlays) do
local new_name = itemname .. "_trimmed_" .. overlay