From ce29c2f4926e478b3d10bca5162548587332bed8 Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Thu, 15 Sep 2016 17:30:35 -0700 Subject: [PATCH] remove redundant check for nametagged entities This is already checked at the beginning of the method, and returns false if true. --- .../PopulationDensity/WorldEventHandler.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/me/ryanhamshire/PopulationDensity/WorldEventHandler.java b/src/me/ryanhamshire/PopulationDensity/WorldEventHandler.java index 14cea51..ee34b60 100644 --- a/src/me/ryanhamshire/PopulationDensity/WorldEventHandler.java +++ b/src/me/ryanhamshire/PopulationDensity/WorldEventHandler.java @@ -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(); @@ -228,4 +221,4 @@ static void removeAbandonedEntities(Chunk chunk) } } } -} \ No newline at end of file +}