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