Send extra id on Add/Remove player

This commit is contained in:
Shoghi Cervantes
2015-04-11 18:00:25 +02:00
parent f71cf1c749
commit 6b1b6711bd
2 changed files with 5 additions and 5 deletions

View File

@ -198,7 +198,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
}
$pk = new AddPlayerPacket();
$pk->clientID = 0;
$pk->clientID = $this->getId();
$pk->username = $this->nameTag;
$pk->eid = $this->getId();
$pk->x = $this->x;
@ -224,7 +224,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
if(isset($this->hasSpawned[$player->getId()])){
$pk = new RemovePlayerPacket();
$pk->eid = $this->id;
$pk->clientID = 0;
$pk->clientID = $this->id;
$player->dataPacket($pk);
unset($this->hasSpawned[$player->getId()]);
}