headYaw was added

This commit is contained in:
GameHerobrine 2022-11-13 13:08:50 +03:00
parent cf13bd4c43
commit 685efef843
3 changed files with 20 additions and 20 deletions

View file

@ -287,17 +287,7 @@ class EntityAPI{
public function getAll($level = null){
if($level instanceof Level){
$entities = [];
$l = $this->server->query("SELECT EID FROM entities WHERE level = '" . $level->getName() . "';");
if($l !== false and $l !== true){
while(($e = $l->fetchArray(SQLITE3_ASSOC)) !== false){
$e = $this->get($e["EID"]);
if($e instanceof Entity){
$entities[$e->eid] = $e;
}
}
}
return $entities;
return $level->entityList;
}
return $this->entities;
}