Java 7 support

This commit is contained in:
md_5 2016-04-24 11:39:23 +10:00
parent 0b554be10a
commit b9a98c88ba

View File

@ -109,12 +109,11 @@ class EntityMap_1_8 extends EntityMap
if ( readId > 0 && changedId <= 0 )
{
packet.writerIndex( packet.writerIndex() - 3 * Short.BYTES );
packet.writerIndex( packet.writerIndex() - 6 );
} else if ( changedId > 0 && readId <= 0 )
{
packet.ensureWritable( 6 );
packet.writerIndex( packet.writerIndex() + 3 * Short.BYTES );
packet.writerIndex( packet.writerIndex() + 6 );
}
}
} else if ( packetId == 0x0C /* Spawn Player */ )