Skip to content

Commit

Permalink
removing bar from above players head
Browse files Browse the repository at this point in the history
  • Loading branch information
frodare committed Sep 23, 2018
1 parent 15354c8 commit 939b6a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/torocraft/torohud/gui/HealthBars.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import net.torocraft.torohud.gui.HealthBars.Conf.NumberType;
import net.torocraft.torohud.util.EntityUtil;
import org.lwjgl.opengl.GL11;
import scala.collection.parallel.ParIterableLike.Min;


@Mod.EventBusSubscriber(Side.CLIENT)
Expand Down Expand Up @@ -183,7 +184,7 @@ private static State getState(Entity entity) {
}

public static void drawEntityHealthBarInWorld(EntityLivingBase entity, float partialTicks) {
if (!EntityUtil.whiteListedEntity(entity)) {
if (!EntityUtil.whiteListedEntity(entity) || entity == Minecraft.getMinecraft().player) {
return;
}
double x = entity.lastTickPosX + ((entity.posX - entity.lastTickPosX) * partialTicks);
Expand Down

0 comments on commit 939b6a3

Please sign in to comment.