mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
avoid crashing in forceShutdown() if properties wasn't initialized yet
This commit is contained in:
parent
c276ef2b7f
commit
1e2122d854
@ -2041,7 +2041,7 @@ class Server{
|
||||
$this->scheduler->mainThreadHeartbeat(PHP_INT_MAX);
|
||||
}
|
||||
|
||||
if($this->properties->hasChanged()){
|
||||
if($this->properties !== null and $this->properties->hasChanged()){
|
||||
$this->getLogger()->debug("Saving properties");
|
||||
$this->properties->save();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user