Merge pull request #71 from Silent-Client/TEST2

Update PotionHudMod.java
This commit is contained in:
kirillsaint 2023-10-28 19:50:43 +06:00 committed by GitHub
commit ca30aa4636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,5 @@
package net.silentclient.client.mods.hud; 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.Minecraft;
import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.Gui;
import net.minecraft.client.renderer.GlStateManager; 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.ModCategory;
import net.silentclient.client.mods.ModDraggable; import net.silentclient.client.mods.ModDraggable;
import java.awt.*;
import java.util.ArrayList;
import java.util.Collection;
public class PotionHudMod extends ModDraggable { public class PotionHudMod extends ModDraggable {
public PotionHudMod() { public PotionHudMod() {
@ -72,9 +72,6 @@ public class PotionHudMod extends ModDraggable {
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.disableLighting(); GlStateManager.disableLighting();
int k = 18; int k = 18;
if (collection.size() > 5) {
k = 132 / (collection.size() - 1);
}
for (PotionEffect potioneffect : this.mc.thePlayer.getActivePotionEffects()) { for (PotionEffect potioneffect : this.mc.thePlayer.getActivePotionEffects()) {
Potion potion = Potion.potionTypes[potioneffect.getPotionID()]; Potion potion = Potion.potionTypes[potioneffect.getPotionID()];
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);