Skip to content

Commit

Permalink
remove redundant check for nametagged entities
Browse files Browse the repository at this point in the history
This is already checked at the beginning of the method, and returns false if true.
  • Loading branch information
RoboMWM authored Sep 16, 2016
1 parent 0bd9c4c commit ce29c2f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/me/ryanhamshire/PopulationDensity/WorldEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,6 @@ else if(entity instanceof Minecart && PopulationDensity.instance.unusedMinecarts
return false;
}

//triple allowance if a player nametagged the entity
if(customName != null && !customName.isEmpty())
{
darkMaxTicks *= 3;
lightMaxTicks *= 3;
}

//if in the dark, treat as wilderness creature which won't live as long
byte lightLevel = 15;
int yLocation = entity.getLocation().getBlockY();
Expand Down Expand Up @@ -228,4 +221,4 @@ static void removeAbandonedEntities(Chunk chunk)
}
}
}
}
}

0 comments on commit ce29c2f

Please sign in to comment.