mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Fixed yet another crash when level-settings.always-tick-players is set to true
This commit is contained in:
@ -2209,7 +2209,7 @@ class Server{
|
|||||||
foreach($this->players as $p){
|
foreach($this->players as $p){
|
||||||
if(!$p->loggedIn and ($tickTime - $p->creationTime) >= 10){
|
if(!$p->loggedIn and ($tickTime - $p->creationTime) >= 10){
|
||||||
$p->close("", "Login timeout");
|
$p->close("", "Login timeout");
|
||||||
}elseif($this->alwaysTickPlayers){
|
}elseif($this->alwaysTickPlayers and $p->joined){
|
||||||
$p->onUpdate($currentTick);
|
$p->onUpdate($currentTick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user