From f511e8ff281d6d39d7b3d4ddba8afb7f22d4dcc5 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Sat, 28 Oct 2023 19:49:03 +0600 Subject: [PATCH] Update PotionHudMod.java --- .../silentclient/client/mods/hud/PotionHudMod.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/silentclient/client/mods/hud/PotionHudMod.java b/src/main/java/net/silentclient/client/mods/hud/PotionHudMod.java index 5e32826..155d398 100644 --- a/src/main/java/net/silentclient/client/mods/hud/PotionHudMod.java +++ b/src/main/java/net/silentclient/client/mods/hud/PotionHudMod.java @@ -1,9 +1,5 @@ package net.silentclient.client.mods.hud; -import java.awt.Color; -import java.util.ArrayList; -import java.util.Collection; - import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.renderer.GlStateManager; @@ -18,6 +14,10 @@ import net.silentclient.client.mods.CustomFontRenderer; import net.silentclient.client.mods.ModCategory; import net.silentclient.client.mods.ModDraggable; +import java.awt.*; +import java.util.ArrayList; +import java.util.Collection; + public class PotionHudMod extends ModDraggable { public PotionHudMod() { @@ -72,9 +72,6 @@ public class PotionHudMod extends ModDraggable { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.disableLighting(); int k = 18; - if (collection.size() > 5) { - k = 132 / (collection.size() - 1); - } for (PotionEffect potioneffect : this.mc.thePlayer.getActivePotionEffects()) { Potion potion = Potion.potionTypes[potioneffect.getPotionID()]; GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);