mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed unknown and impossible crash
This commit is contained in:
parent
dbde770fce
commit
5f3829692d
@ -110,7 +110,7 @@ class EntityAPI{
|
|||||||
|
|
||||||
public function spawnToAll(Entity $e){
|
public function spawnToAll(Entity $e){
|
||||||
foreach($this->server->api->player->getAll($e->level) as $player){
|
foreach($this->server->api->player->getAll($e->level) as $player){
|
||||||
if($player->eid !== false and $player->eid !== $e->eid and $e->class !== ENTITY_PLAYER){
|
if($player->eid !== false and $player->eid !== $e->eid and $e->class !== ENTITY_PLAYER and $e instanceof Entity){
|
||||||
$e->spawn($player);
|
$e->spawn($player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user