Fixed #2541 server not saving chunks on chunk unloading

This commit is contained in:
Shoghi Cervantes 2015-01-24 10:35:08 +01:00
parent 5bd76e955c
commit 9173f930ca
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -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);
} }