mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:41:31 +01:00
Merge pull request #71 from Silent-Client/TEST2
Update PotionHudMod.java
This commit is contained in:
commit
ca30aa4636
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user