Move responsibility for ping handling to NetworkSession

This commit is contained in:
Dylan K. Taylor
2018-07-21 16:33:12 +01:00
parent 57e5b1309d
commit ca1a0c8643
3 changed files with 22 additions and 20 deletions

View File

@ -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);
}
}
}