Fix forge support - #111
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user