diff --git a/src/main/java/tconstruct/library/tools/DynamicToolPart.java b/src/main/java/tconstruct/library/tools/DynamicToolPart.java index fed975ba9be..8168c3baceb 100644 --- a/src/main/java/tconstruct/library/tools/DynamicToolPart.java +++ b/src/main/java/tconstruct/library/tools/DynamicToolPart.java @@ -15,6 +15,7 @@ import tconstruct.library.util.IToolPart; import tconstruct.library.util.TextureHelper; import tconstruct.tools.TinkerTools; +import tconstruct.util.config.PHConstruct; import java.util.List; import java.util.Map; @@ -115,12 +116,13 @@ public void registerIcons (IIconRegister iconRegister) this.icons = new IIcon[max+1]; // register icon for each material that has one - for(Map.Entry entry : TConstructRegistry.toolMaterials.entrySet()) - { - String tex = modTexPrefix + ":" + folder + entry.getValue().materialName.toLowerCase() + texture; - if(TextureHelper.itemTextureExists(tex)) - this.icons[entry.getKey()] = iconRegister.registerIcon(tex); - } + if(!PHConstruct.minimalTextures) + for(Map.Entry entry : TConstructRegistry.toolMaterials.entrySet()) + { + String tex = modTexPrefix + ":" + folder + entry.getValue().materialName.toLowerCase() + texture; + if(TextureHelper.itemTextureExists(tex)) + this.icons[entry.getKey()] = iconRegister.registerIcon(tex); + } // default texture this.defaultIcon = iconRegister.registerIcon(modTexPrefix + ":" + folder + texture); diff --git a/src/main/java/tconstruct/library/tools/ToolCore.java b/src/main/java/tconstruct/library/tools/ToolCore.java index fe7d939c2ea..777ab4882ca 100644 --- a/src/main/java/tconstruct/library/tools/ToolCore.java +++ b/src/main/java/tconstruct/library/tools/ToolCore.java @@ -21,6 +21,7 @@ import tconstruct.library.util.TextureHelper; import tconstruct.tools.TinkerTools; import tconstruct.tools.entity.FancyEntityItem; +import tconstruct.util.config.PHConstruct; /** * NBTTags Main tag - InfiTool @@ -214,6 +215,10 @@ public void registerIcons (IIconRegister iconRegister) private void addIcons(HashMap textures, HashMap icons, IIconRegister iconRegister, String standard) { + // compatibility mode: no specific textures + if(PHConstruct.minimalTextures) + textures.clear(); + icons.clear(); for(Map.Entry entry : textures.entrySet()) { @@ -221,9 +226,6 @@ private void addIcons(HashMap textures, HashMap icons.put(entry.getKey(), iconRegister.registerIcon(entry.getValue())); } - // get the mod id stuff. - - if(standard != null && !standard.isEmpty()) { standard = getDefaultTexturePath() + "/" + standard; icons.put(-1, iconRegister.registerIcon(standard)); diff --git a/src/main/java/tconstruct/util/config/PHConstruct.java b/src/main/java/tconstruct/util/config/PHConstruct.java index 6a90f823e1e..826fe100254 100644 --- a/src/main/java/tconstruct/util/config/PHConstruct.java +++ b/src/main/java/tconstruct/util/config/PHConstruct.java @@ -184,6 +184,7 @@ public static void initProps (File location) throwableSmeltery = config.get("Experimental", "Items can be thrown into smelteries", true).getBoolean(true); newSmeltery = config.get("Experimental", "Use new adaptive Smeltery code", false, "Warning: Very buggy").getBoolean(false); meltableHorses = config.get("Experimental", "Allow horses to be melted down for glue", true).getBoolean(true); + minimalTextures = config.get("Experimental", "Minimal Textures", false).getBoolean(false); /* Save the configuration file only if it has changed */ if (config.hasChanged()) @@ -351,5 +352,6 @@ public static void initProps (File location) public static boolean throwableSmeltery; public static boolean newSmeltery; public static boolean meltableHorses; + public static boolean minimalTextures; }