From 1e673600485c87c9e31b18ba32fef8fe0b327e2e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 18 Jan 2018 17:04:25 +0000 Subject: [PATCH] SpawnEgg: Remove redundant isSurvival() check --- src/pocketmine/item/SpawnEgg.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/item/SpawnEgg.php b/src/pocketmine/item/SpawnEgg.php index 481f747b4..4b638a11a 100644 --- a/src/pocketmine/item/SpawnEgg.php +++ b/src/pocketmine/item/SpawnEgg.php @@ -44,9 +44,7 @@ class SpawnEgg extends Item{ $entity = Entity::createEntity($this->meta, $level, $nbt); if($entity instanceof Entity){ - if($player->isSurvival()){ - --$this->count; - } + --$this->count; $entity->spawnToAll(); return true; }