Update PotionHudMod.java

This commit is contained in:
kirillsaint 2023-10-28 19:49:03 +06:00
parent 44fb06f929
commit f511e8ff28

View File

@ -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);