Client sending invalid slot id for MC|PickItem CPacketCustomPayload packet causes server side exceptions
The bug
The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.
A CPacketCustomPayload packet with an invalid slot id causes a server side exception because the method net.minecraft.entity.player.InventoryPlayer.func_184430_d(int) uses the given inventory id as index for the inventory of the player. If the index is then invalid a ArrayIndexOutOfBoundsException is thrown.