Skip to content

Commit

Permalink
Closes VazkiiMods#17
Browse files Browse the repository at this point in the history
  • Loading branch information
kirothos committed Feb 8, 2017
1 parent aa42250 commit b27764c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/vazkii/neat/HealthBarRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ public void renderHealthBar(EntityLivingBase passedEntity, float partialTicks, E
String entityID = EntityList.getEntityString(entity);
if(NeatConfig.blacklist.contains(entityID))
continue;

boolean foundMatch = false;
for(String entry : NeatConfig.blacklist) {
if (foundMatch)
break;
if (entityID.matches(entry)) {
foundMatch = true;
}
}
if (foundMatch)
continue;

processing: {
float distance = passedEntity.getDistanceToEntity(viewPoint);
Expand Down

0 comments on commit b27764c

Please sign in to comment.