From 26fb28edd1ebb6390f8803fed3876d222cb8fdba Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 22 Aug 2019 20:00:53 -0400 Subject: Minor cleanup --- .../jewelrycraft/util/JewelrycraftUtil.java | 44 +--------------------- 1 file changed, 1 insertion(+), 43 deletions(-) (limited to 'src') diff --git a/src/main/java/darkknight/jewelrycraft/util/JewelrycraftUtil.java b/src/main/java/darkknight/jewelrycraft/util/JewelrycraftUtil.java index 397f501..6d207ff 100755 --- a/src/main/java/darkknight/jewelrycraft/util/JewelrycraftUtil.java +++ b/src/main/java/darkknight/jewelrycraft/util/JewelrycraftUtil.java @@ -119,49 +119,7 @@ public class JewelrycraftUtil { @SideOnly(Side.CLIENT) public static void generateColors() { - /* - * Doesn't seem to do much of anything - */ - /* - for (Object item : GameData.getItemRegistry()) { - if (item != null) { - if (Loader.isModLoaded("Mantle") - && ((Item) item).getUnlocalizedName() - .equals("Mantle:item.mantle.manual")) { - continue; - } - - try { - if (itemHasSubtypes(item)) { - ((Item) item).getSubItems( - (Item) item, - null, - items); - } else { - ItemStack it = new ItemStack( - (Item) item); - colors.put(it, color(it, - 0)); - } - - if (!items.isEmpty()) { - for (ItemStack it : items) { - colors.put(it, color( - it, - 0)); - } - } - - items.removeAll(items); - } catch (Exception e) { - JewelrycraftMod.logger.info( - "Error, tried to add the color of the item " - + ((Item) item).getUnlocalizedName() - + " but something went wrong."); - } - } - } - */ + } @SideOnly(Side.CLIENT) -- cgit v1.2.3