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