Skip to content

Commit

Permalink
Changed human skin sending
Browse files Browse the repository at this point in the history
May not affect anything
  • Loading branch information
jojoe77777 committed Nov 20, 2016
1 parent 66a84aa commit 277197f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Slapper/src/slapper/entities/SlapperHuman.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,9 @@ public function spawnTo(Player $player) {
$pk->metadata[self::DATA_NAMETAG] = [self::DATA_TYPE_STRING, $this->getDisplayName($player)];
$player->dataPacket($pk);
$this->inventory->sendArmorContents($player);

$add = new PlayerListPacket();
$add->type = 0;
$add->entries[] = [$uuid, $entityId, isset($this->namedtag->MenuName) ? $this->namedtag["MenuName"] : "", $this->skinId, $this->skin];
$player->dataPacket($add);
$player->server->updatePlayerListData($uuid, $entityId, $this->namedtag["MenuName"] ?? "", $this->skinId, $this->skin, [$player]);
if ($this->namedtag["MenuName"] === "") {
$remove = new PlayerListPacket();
$remove->type = 1;
$remove->entries[] = [$uuid];
$player->dataPacket($remove);
$player->server->removePlayerListData($uuid, [$player]);
}
}
}
Expand Down

0 comments on commit 277197f

Please sign in to comment.