From b27764c29d625c859e70569139831cd37e2965c3 Mon Sep 17 00:00:00 2001 From: kirothos Date: Wed, 8 Feb 2017 09:42:23 -0500 Subject: [PATCH] Closes #17 --- src/main/java/vazkii/neat/HealthBarRenderer.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/vazkii/neat/HealthBarRenderer.java b/src/main/java/vazkii/neat/HealthBarRenderer.java index 9653a67..a0574bf 100644 --- a/src/main/java/vazkii/neat/HealthBarRenderer.java +++ b/src/main/java/vazkii/neat/HealthBarRenderer.java @@ -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);