mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
Fix held item not always being changed to the new held item (#45)
Co-authored-by: Marioiscool246 <marioiscool101@gmail.com>
This commit is contained in:
@@ -353,7 +353,6 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& rakGuid, PlayerE
|
||||
}
|
||||
|
||||
pPlayer->m_pInventory->selectItemById(pPlayerEquipmentPkt->m_itemID);
|
||||
pPlayer->m_pInventory->selectSlot(0);
|
||||
}
|
||||
|
||||
bool ClientSideNetworkHandler::areAllChunksLoaded()
|
||||
|
||||
@@ -279,7 +279,6 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, PlayerEqui
|
||||
}
|
||||
|
||||
pPlayer->m_pInventory->selectItemById(packet->m_itemID);
|
||||
pPlayer->m_pInventory->selectSlot(0);
|
||||
|
||||
redistributePacket(packet, guid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user