diff --git a/src/main/java/tconstruct/library/tools/ToolCore.java b/src/main/java/tconstruct/library/tools/ToolCore.java index c152132d..03dbd84b 100644 --- a/src/main/java/tconstruct/library/tools/ToolCore.java +++ b/src/main/java/tconstruct/library/tools/ToolCore.java @@ -202,22 +202,23 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IMo @Override public void registerIcons (IIconRegister iconRegister) { - addIcons(headStrings, headIcons, iconRegister, getIconSuffix(0)); - addIcons(brokenPartStrings, brokenIcons, iconRegister, getIconSuffix(1)); - addIcons(handleStrings, handleIcons, iconRegister, getIconSuffix(2)); - addIcons(accessoryStrings, accessoryIcons, iconRegister, getIconSuffix(3)); - addIcons(extraStrings, extraIcons, iconRegister, getIconSuffix(4)); + boolean minimalTextures = PHConstruct.minimalTextures; + addIcons(headStrings, headIcons, iconRegister, getIconSuffix(0), minimalTextures); + addIcons(brokenPartStrings, brokenIcons, iconRegister, getIconSuffix(1), minimalTextures); + addIcons(handleStrings, handleIcons, iconRegister, getIconSuffix(2), minimalTextures); + addIcons(accessoryStrings, accessoryIcons, iconRegister, getIconSuffix(3), minimalTextures); + addIcons(extraStrings, extraIcons, iconRegister, getIconSuffix(4), minimalTextures); - addIcons(effectStrings, effectIcons, iconRegister, null); + addIcons(effectStrings, effectIcons, iconRegister, null, false); emptyIcon = iconRegister.registerIcon("tinker:blankface"); } - private void addIcons(HashMap textures, HashMap icons, IIconRegister iconRegister, String standard) + protected void addIcons(HashMap textures, HashMap icons, IIconRegister iconRegister, String standard, boolean defaultOnly) { icons.clear(); - if(!PHConstruct.minimalTextures) // compatibility mode: no specific textures + if(!defaultOnly) // compatibility mode: no specific textures for(Map.Entry entry : textures.entrySet()) { if(TextureHelper.itemTextureExists(entry.getValue()))