mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Added API to allow flagging an entity not to be saved to disk when its chunk is saved (#1452)
This commit is contained in:
@ -89,7 +89,7 @@ class McRegion extends BaseLevelProvider{
|
||||
$entities = [];
|
||||
|
||||
foreach($chunk->getEntities() as $entity){
|
||||
if(!($entity instanceof Player) and !$entity->isClosed()){
|
||||
if($entity->canSaveWithChunk() and !$entity->isClosed()){
|
||||
$entity->saveNBT();
|
||||
$entities[] = $entity->namedtag;
|
||||
}
|
||||
|
Reference in New Issue
Block a user