Fix several problems in mcl_item_id

This commit is contained in:
NO11 2021-07-22 19:23:48 +00:00
parent a47630035d
commit a44d9643ae

View file

@ -28,8 +28,12 @@ tt.register_snippet(function(itemstring)
end
end
end
minetest.register_alias_force(new_id, itemstring)
if minetest.settings:get_bool("mcl_item_id_debug", true) then
if new_id ~= game .. ":book_enchanted" then
minetest.register_alias_force(new_id, itemstring)
end
if minetest.settings:get_bool("mcl_item_id_debug", false) then
return new_id, "#555555"
end
end)
minetest.register_alias_force(game .. ":book_enchanted", "mcl_enchanting:book_enchanted")