Fixed unloading chunks

This commit is contained in:
Shoghi Cervantes 2014-11-04 11:18:34 +01:00
parent abbd33210a
commit a5369b3570

View File

@ -1862,7 +1862,7 @@ class Level implements ChunkManager, Metadatable{
}
public function unloadChunk($x, $z, $safe = true){
if(($safe === true and $this->isChunkInUse($x, $z)) or $this->isChunkLoaded($x, $z)){
if(($safe === true and $this->isChunkInUse($x, $z)) or !$this->isChunkLoaded($x, $z)){
return false;
}