SpawnEgg: Remove redundant isSurvival() check

This commit is contained in:
Dylan K. Taylor 2018-01-18 17:04:25 +00:00
parent 3520dafd29
commit 1e67360048

View File

@ -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;
}