Navigation Menu

Skip to content

Commit

Permalink
Patch for new zombie players feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corosauce committed Feb 11, 2019
1 parent 3dd02ee commit c1b75a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/ZombieAwareness/ZAUtil.java
Expand Up @@ -434,6 +434,13 @@ public static boolean ai_FindTarget(EntityLiving ent, boolean omniscient) {
for(int j = 0; j < list.size(); j++)
{
Entity entity1 = (Entity)list.get(j);

//for new calmed zombies, keep them from targetting/pathing towards player
//just blacklisting all of them from this feature, not checking if calm currently
if (ent.getClass().getSimpleName().equals("EntityZombiePlayer")) {
continue;
}

if(isEnemy(ent, entity1, omniscient))
{
if (omniscient || (ZAConfig.seeThroughWalls || ((EntityLivingBase) entity1).canEntityBeSeen(ent))) {
Expand Down

0 comments on commit c1b75a0

Please sign in to comment.