mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +00:00
Fix minimal textures not having modifier textures. (Oops)
This commit is contained in:
1 parent
0430391446
commit
f766427522
1 file changed
+9
-8
@@ -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<Integer, String> textures, HashMap<Integer, IIcon> icons, IIconRegister iconRegister, String standard)
|
||||
protected void addIcons(HashMap<Integer, String> textures, HashMap<Integer, IIcon> 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<Integer, String> entry : textures.entrySet())
|
||||
{
|
||||
if(TextureHelper.itemTextureExists(entry.getValue()))
|
||||
|
||||
Reference in new issue
Block a user