This commit is contained in:
KennyTV 2021-06-02 23:22:09 +02:00
parent fec777b349
commit b2855c2cd4
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -97,7 +97,7 @@ public class InventoryPackets {
boolean accepted = wrapper.read(Type.BOOLEAN);
if (!accepted) {
// Use the new ping packet to replace the removed acknowledgement, extra bit for fast dismissal
int id = (1 << 30) | (inventoryId << 16) | (confirmationId & 0xFFF);
int id = (1 << 30) | (inventoryId << 16) | (confirmationId & 0xFFFF);
wrapper.user().get(InventoryAcknowledgements.class).addId(id);
PacketWrapper pingPacket = wrapper.create(ClientboundPackets1_17.PING);