Fix click window packet

This commit is contained in:
creeper123123321 2018-07-14 07:53:31 -03:00
parent e8cb0f561e
commit 051df7401e
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 3 additions and 3 deletions

View File

@ -496,10 +496,10 @@ public class ProtocolSnapshotTo1_12_2 extends Protocol {
registerIncoming(State.PLAY, 0x05, 0x06); registerIncoming(State.PLAY, 0x05, 0x06);
registerIncoming(State.PLAY, 0x06, 0x07); registerIncoming(State.PLAY, 0x06, 0x07);
registerIncoming(State.PLAY, 0x07, 0x08); // InventoryPackets 0x07, 0x08
registerIncoming(State.PLAY, 0x08, 0x09); registerIncoming(State.PLAY, 0x08, 0x09);
// InventoryPackets 0x09 -> 0x0A // InventoryPackets 0x09 -> 0x0A
// New 0x0A - Edit book -> Plugin Message // New 0x0A - Edit book -> Plugin Message
registerIncoming(State.PLAY, 0x09, 0x0B, new PacketRemapper() { registerIncoming(State.PLAY, 0x09, 0x0B, new PacketRemapper() {
@Override @Override

View File

@ -182,7 +182,7 @@ public class InventoryPackets {
*/ */
// Click window packet // Click window packet
protocol.registerIncoming(State.PLAY, 0x07, 0x07, new PacketRemapper() { protocol.registerIncoming(State.PLAY, 0x07, 0x08, new PacketRemapper() {
@Override @Override
public void registerMap() { public void registerMap() {
map(Type.UNSIGNED_BYTE); // 0 - Window ID map(Type.UNSIGNED_BYTE); // 0 - Window ID