mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fixed damage bar color. Closes #3389
This commit is contained in:
1 parent
6741967608
commit
3ea027c3bd
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user