Fixed armor rendering

This commit is contained in:
RainWarrior 2016-03-11 01:26:04 +03:00
parent 018c67d969
commit 93c1c737e1
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
- case LEATHER:
int i = itemarmor.getColor(itemstack);
+ {
+ if (i != -1) // Allow this for anything, not only cloth
+ if (i != 0xFFFFFF) // Allow this for anything, not only cloth
+ {
float f = (float)(i >> 16 & 255) / 255.0F;
float f1 = (float)(i >> 8 & 255) / 255.0F;