Skip to content

Commit

Permalink
Fix broken textures not getting colored correctly if a special head-t…
Browse files Browse the repository at this point in the history
…exture is present, but not a broken one
  • Loading branch information
bonii-xx committed Nov 21, 2014
1 parent 3c7d9f0 commit ce47cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/library/tools/ToolCore.java
Expand Up @@ -648,7 +648,7 @@ public int getColorFromItemStack(ItemStack stack, int renderPass) {
switch(renderPass)
{
case 0: return getCorrectColor(stack, renderPass, tags, "Handle", handleIcons);
case 1: return getCorrectColor(stack, renderPass, tags, "Head", headIcons);
case 1: return tags.getBoolean("Broken") ? getCorrectColor(stack, renderPass, tags, "Head", brokenIcons) : getCorrectColor(stack, renderPass, tags, "Head", headIcons);
case 2: return getCorrectColor(stack, renderPass, tags, "Accessory", accessoryIcons);
case 3: return getCorrectColor(stack, renderPass, tags, "Extra", extraIcons);
}
Expand Down

0 comments on commit ce47cd3

Please sign in to comment.