work on moving inventory network functionality to network layer

This commit is contained in:
Dylan K. Taylor
2019-06-25 13:28:01 +01:00
parent 9f09dc3dd7
commit d15284e638
21 changed files with 277 additions and 265 deletions

View File

@@ -91,8 +91,8 @@ class PreSpawnPacketHandler extends PacketHandler{
$this->player->sendPotionEffects($this->player);
$this->player->sendData($this->player);
$this->session->syncAllInventoryContents();
$this->session->syncCreativeInventoryContents();
$this->session->getInvManager()->syncAll();
$this->session->getInvManager()->syncCreative();
$this->player->getInventory()->sendHeldItem($this->player);
$this->session->queueCompressed($this->server->getCraftingManager()->getCraftingDataPacket());