mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed crash at unload
This commit is contained in:
parent
be83eaf521
commit
15c9b7214d
1 changed files with 3 additions and 0 deletions
|
|
@ -127,6 +127,9 @@ class Level{
|
|||
}
|
||||
|
||||
public function save($force = false){
|
||||
if(!isset($this->level)){
|
||||
return false;
|
||||
}
|
||||
if($this->server->saveEnabled === false and $force === false){
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue