Removed RakNet client ID parameters from Player

This is not used anywhere anymore and null is always filled for this, so it's pointless.

Also, this is an API break.
This commit is contained in:
Dylan K. Taylor
2018-02-17 19:51:04 +00:00
parent f27b62027c
commit 6954bfac4b
3 changed files with 4 additions and 18 deletions

View File

@ -128,11 +128,11 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
}
public function openSession($identifier, $address, $port, $clientID){
$ev = new PlayerCreationEvent($this, Player::class, Player::class, null, $address, $port);
$ev = new PlayerCreationEvent($this, Player::class, Player::class, $address, $port);
$this->server->getPluginManager()->callEvent($ev);
$class = $ev->getPlayerClass();
$player = new $class($this, $ev->getClientId(), $ev->getAddress(), $ev->getPort());
$player = new $class($this, $ev->getAddress(), $ev->getPort());
$this->players[$identifier] = $player;
$this->identifiersACK[$identifier] = 0;
$this->identifiers[spl_object_hash($player)] = $identifier;