mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Fixed yet another crash when level-settings.always-tick-players is set to true
This commit is contained in:
parent
7f838a8c36
commit
87a52a4f35
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user