some cleanup to held item handling

This commit is contained in:
Dylan K. Taylor
2019-06-26 19:40:40 +01:00
parent 61d443bf4e
commit 7f56f27505
6 changed files with 37 additions and 36 deletions

View File

@@ -93,7 +93,7 @@ class PreSpawnPacketHandler extends PacketHandler{
$this->session->getInvManager()->syncAll();
$this->session->getInvManager()->syncCreative();
$this->player->getInventory()->sendHeldItem($this->player);
$this->session->getInvManager()->syncSelectedHotbarSlot();
$this->session->queueCompressed($this->server->getCraftingManager()->getCraftingDataPacket());
$this->session->syncPlayerList();