From 2312e2f4c9e52f7bc366351e60d5c5702974745a Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Wed, 25 Jan 2023 21:56:18 +0100 Subject: [PATCH] quick fix : Integer multiplication or shift implicitly cast to long --- src/main/java/tconstruct/armor/ArmorProxyClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/armor/ArmorProxyClient.java b/src/main/java/tconstruct/armor/ArmorProxyClient.java index 7cc07012..f2ad0b07 100644 --- a/src/main/java/tconstruct/armor/ArmorProxyClient.java +++ b/src/main/java/tconstruct/armor/ArmorProxyClient.java @@ -289,7 +289,7 @@ public class ArmorProxyClient extends ArmorProxyCommon { int healthRows = MathHelper.ceiling_float_int((healthMax + absorb) / 2.0F / 10.0F); int rowHeight = Math.max(10 - (healthRows - 2), 3); - this.rand.setSeed((long) (updateCounter * 312871)); + this.rand.setSeed(updateCounter * 312871L); int left = scaledWidth / 2 - 91; int top = scaledHeight - GuiIngameForge.left_height;