mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
small entity optimizations
This commit is contained in:
parent
54bdb8a244
commit
019e7f26ea
5 changed files with 383 additions and 263 deletions
|
|
@ -89,8 +89,10 @@ class Level{
|
|||
|
||||
if($extra !== false){
|
||||
$entities = [];
|
||||
foreach($this->server->api->entity->getAll($this) as $entity){
|
||||
$entities[] = $entity->createSaveData();
|
||||
foreach($this->entityList as $entity){
|
||||
if($entity instanceof Entity){
|
||||
$entities[] = $entity->createSaveData();
|
||||
}
|
||||
}
|
||||
$this->entities->setAll($entities);
|
||||
$this->entities->save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue