mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
SpawnEgg: Remove redundant isSurvival() check
This commit is contained in:
@ -44,9 +44,7 @@ class SpawnEgg extends Item{
|
|||||||
$entity = Entity::createEntity($this->meta, $level, $nbt);
|
$entity = Entity::createEntity($this->meta, $level, $nbt);
|
||||||
|
|
||||||
if($entity instanceof Entity){
|
if($entity instanceof Entity){
|
||||||
if($player->isSurvival()){
|
--$this->count;
|
||||||
--$this->count;
|
|
||||||
}
|
|
||||||
$entity->spawnToAll();
|
$entity->spawnToAll();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user