Modified Chunk provider saving

This commit is contained in:
Shoghi Cervantes
2014-08-06 16:22:12 +02:00
parent 2904aa06ef
commit 232bf5ebe4
5 changed files with 53 additions and 31 deletions

View File

@ -95,6 +95,8 @@ class Anvil extends McRegion{
throw new \Exception("Invalid Chunk class");
}
$chunk->setProvider($this);
if($chunk->isPopulated() === false){
$this->unloadChunk($chunkX, $chunkZ, false);
$regionX = $regionZ = null;