PreSpawnPacketHandler: emit a separate debug message for sending creative data

This commit is contained in:
Dylan K. Taylor 2022-09-28 21:57:01 +01:00
parent fc56c041f3
commit 1f9dfa77bf
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -131,9 +131,11 @@ class PreSpawnPacketHandler extends PacketHandler{
$this->session->getLogger()->debug("Sending inventory");
$this->inventoryManager->syncAll();
$this->inventoryManager->syncCreative();
$this->inventoryManager->syncSelectedHotbarSlot();
$this->session->getLogger()->debug("Sending creative inventory data");
$this->inventoryManager->syncCreative();
$this->session->getLogger()->debug("Sending crafting data");
$this->session->sendDataPacket(CraftingDataCache::getInstance()->getCache($this->server->getCraftingManager()));