Actually fix #500, mode changed to VarIntEnum at 1.8->1.9 but we never changed it.

This commit is contained in:
Matsv 2016-09-21 15:26:06 +02:00
parent 5a88963929
commit 3762a9d3b1
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ public class InventoryPackets {
map(Type.SHORT); // 1 - Slot ID
map(Type.BYTE); // 2 - Button
map(Type.SHORT); // 3 - Action
map(Type.BYTE); // 4 - Mode
map(Type.VAR_INT, Type.BYTE); // 4 - Mode
map(Type.ITEM); // 5 - Clicked Item
handler(new PacketHandler() {
@Override

View File

@ -112,7 +112,7 @@ public class InventoryPackets {
map(Type.SHORT); // 1 - Slot
map(Type.BYTE); // 2 - Button
map(Type.SHORT); // 3 - Action number
map(Type.BYTE); // 4 - Mode
map(Type.VAR_INT); // 4 - Mode
map(Type.ITEM); // 5 - Clicked Item
handler(new PacketHandler() {