mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Fixed #2541 server not saving chunks on chunk unloading
This commit is contained in:
@@ -2070,7 +2070,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
try{
|
||||
if($chunk !== null and $chunk->hasChanged() and $this->getAutoSave()){
|
||||
if($chunk !== null and $this->getAutoSave()){
|
||||
$this->provider->setChunk($x, $z, $chunk);
|
||||
$this->provider->saveChunk($x, $z);
|
||||
}
|
||||
|
Reference in New Issue
Block a user