Fixed damage bar color. Closes #3389

This commit is contained in:
LexManos 2016-11-16 16:06:12 -08:00
parent 6741967608
commit 3ea027c3bd

View file

@ -466,7 +466,7 @@
+ */
+ public int getRGBDurabilityForDisplay(ItemStack stack)
+ {
+ return MathHelper.func_181758_c(Math.max(0.0F, (stack.func_77958_k() - stack.func_77952_i()) / stack.func_77958_k()) / 3.0F, 1.0F, 1.0F);
+ return MathHelper.func_181758_c(Math.max(0.0F, (float)(stack.func_77958_k() - stack.func_77952_i()) / stack.func_77958_k()) / 3.0F, 1.0F, 1.0F);
+ }
+ /**
+ * Return the maxDamage for this ItemStack. Defaults to the maxDamage field in this item,