mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Stop autosaving players who haven't joined yet, close #494
This commit is contained in:
parent
16972bf9a5
commit
845b124f89
@ -2254,7 +2254,7 @@ class Server{
|
||||
if($this->getAutoSave()){
|
||||
Timings::$worldSaveTimer->startTiming();
|
||||
foreach($this->players as $index => $player){
|
||||
if($player->isOnline()){
|
||||
if($player->joined){
|
||||
$player->save(true);
|
||||
}elseif(!$player->isConnected()){
|
||||
$this->removePlayer($player);
|
||||
|
Loading…
x
Reference in New Issue
Block a user