loop through tools instead of items
parent
b154f2def1
commit
483285a612
|
@ -6,7 +6,7 @@ mcl_armor_trims = {
|
||||||
|
|
||||||
local function define_items()
|
local function define_items()
|
||||||
local register_list = {}
|
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
|
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
|
for _, overlay in pairs(mcl_armor_trims.overlays) do
|
||||||
local new_name = itemname .. "_trimmed_" .. overlay
|
local new_name = itemname .. "_trimmed_" .. overlay
|
||||||
|
|
Loading…
Reference in New Issue