tweaked level teleport

This commit is contained in:
GameHerobrine 2023-07-10 16:50:51 +03:00
parent e727ef9024
commit 0aee4065e9
2 changed files with 8 additions and 5 deletions

View file

@ -271,7 +271,7 @@ class EntityAPI{
}
public function spawnAll(Player $player){
foreach($this->getAll($player->level) as $e){
foreach($player->level->entityList as $e){
if($e->class !== ENTITY_PLAYER){
$e->spawn($player);
}