mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
loop through tools instead of items
This commit is contained in:
parent
b154f2def1
commit
483285a612
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user