diff --git a/src/main/java/io/luna/net/msg/in/ItemClickMessageReader.java b/src/main/java/io/luna/net/msg/in/ItemClickMessageReader.java index 439b485d..4159bb2a 100644 --- a/src/main/java/io/luna/net/msg/in/ItemClickMessageReader.java +++ b/src/main/java/io/luna/net/msg/in/ItemClickMessageReader.java @@ -46,9 +46,9 @@ public ItemClickEvent decode(Player player, GameMessage msg) { interfaceId = payload.getShort(true, ByteOrder.LITTLE, ValueType.ADD); return new ItemThirdClickEvent(player, id, index, interfaceId); case 228: - interfaceId = payload.getShort(true, ByteOrder.LITTLE, ValueType.ADD); - index = payload.getShort(true, ByteOrder.LITTLE, ValueType.ADD); + index = payload.getShort(true, ByteOrder.LITTLE, ValueType.NORMAL); id = payload.getShort(false, ValueType.ADD); + interfaceId = payload.getShort(true); return new ItemFourthClickEvent(player, id, index, interfaceId); case 4: id = payload.getShort(false, ValueType.ADD);