Fixed armor rendering
This commit is contained in:
parent
018c67d969
commit
93c1c737e1
|
@ -15,7 +15,7 @@
|
||||||
- case LEATHER:
|
- case LEATHER:
|
||||||
int i = itemarmor.getColor(itemstack);
|
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 f = (float)(i >> 16 & 255) / 255.0F;
|
||||||
float f1 = (float)(i >> 8 & 255) / 255.0F;
|
float f1 = (float)(i >> 8 & 255) / 255.0F;
|
||||||
|
|
Loading…
Reference in New Issue