Fix inventory crashes in recent commit #701

This commit is contained in:
Myles 2017-06-26 13:51:18 +01:00
parent 24c4af486c
commit 634f92b5cd
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ public class InventoryPackets {
}); });
// Entity Equipment Packet // Entity Equipment Packet
protocol.registerOutgoing(State.PLAY, 0x3C, 0x3E, new PacketRemapper() { protocol.registerOutgoing(State.PLAY, 0x3C, 0x3C, new PacketRemapper() {
@Override @Override
public void registerMap() { public void registerMap() {
map(Type.VAR_INT); // 0 - Entity ID map(Type.VAR_INT); // 0 - Entity ID
@ -105,7 +105,7 @@ public class InventoryPackets {
*/ */
// Click window packet // Click window packet
protocol.registerIncoming(State.PLAY, 0x07, 0x08, new PacketRemapper() { protocol.registerIncoming(State.PLAY, 0x07, 0x07, new PacketRemapper() {
@Override @Override
public void registerMap() { public void registerMap() {
map(Type.UNSIGNED_BYTE); // 0 - Window ID map(Type.UNSIGNED_BYTE); // 0 - Window ID
@ -127,7 +127,7 @@ public class InventoryPackets {
); );
// Creative Inventory Action // Creative Inventory Action
protocol.registerIncoming(State.PLAY, 0x18, 0x1b, new PacketRemapper() { protocol.registerIncoming(State.PLAY, 0x18, 0x18, new PacketRemapper() {
@Override @Override
public void registerMap() { public void registerMap() {
map(Type.SHORT); // 0 - Slot map(Type.SHORT); // 0 - Slot

View File

@ -12,7 +12,7 @@ import us.myles.ViaVersion.protocols.protocol1_12to1_11_1.Protocol1_12To1_11_1;
public class InventoryPackets { public class InventoryPackets {
public static void register(Protocol1_12To1_11_1 protocol) { public static void register(Protocol1_12To1_11_1 protocol) {
/* /*
Incoming packets Outgoing packets
*/ */
// Set slot packet // Set slot packet