mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Chunk unloading fixed
This commit is contained in:
parent
f1e4bb0f62
commit
fb69cf3392
2 changed files with 5 additions and 5 deletions
|
|
@ -219,7 +219,7 @@ class PMFLevel extends PMF{
|
|||
public function unloadChunk($X, $Z, $save = true){
|
||||
$X = (int) $X;
|
||||
$Z = (int) $Z;
|
||||
if($this->isChunkLoaded($X, $Z)){
|
||||
if(!$this->isChunkLoaded($X, $Z)){
|
||||
return false;
|
||||
}elseif($save !== false){
|
||||
$this->saveChunk($X, $Z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue