Fix forge support - #111

This commit is contained in:
md_5
2013-02-14 18:30:48 +11:00
parent 0451c35bf8
commit bef2818537
2 changed files with 7 additions and 3 deletions

View File

@@ -61,7 +61,11 @@ public class DataInputPacketReader
private static void readPacket(int packetId, DataInput in, byte[] buffer, int protocol) throws IOException
{
Instruction[] packetDef = instructions[packetId + protocol];
Instruction[] packetDef = null;
if ( packetId + protocol < instructions.length )
{
packetDef = instructions[packetId + protocol];
}
if ( packetDef == null )
{