mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Move responsibility for ping handling to NetworkSession
This commit is contained in:
@ -223,7 +223,7 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
|
||||
|
||||
public function updatePing(string $identifier, int $pingMS) : void{
|
||||
if(isset($this->players[$identifier])){
|
||||
$this->players[$identifier]->updatePing($pingMS);
|
||||
$this->players[$identifier]->getNetworkSession()->updatePing($pingMS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user