Typo uncompesssed

This commit is contained in:
thatsIch 2014-09-21 03:00:51 +02:00
parent 698f1d5a52
commit 4e8dea8dfe

View file

@ -65,21 +65,21 @@ public class PacketMEInventoryUpdate extends AppEngPacket
} ); } );
ByteBuf uncompesssed = Unpooled.buffer( stream.readableBytes() ); ByteBuf uncompressed = Unpooled.buffer( stream.readableBytes() );
byte tmp[] = new byte[1024]; byte tmp[] = new byte[1024];
while (gzReader.available() != 0) while (gzReader.available() != 0)
{ {
int bytes = gzReader.read( tmp ); int bytes = gzReader.read( tmp );
if ( bytes > 0 ) if ( bytes > 0 )
uncompesssed.writeBytes( tmp, 0, bytes ); uncompressed.writeBytes( tmp, 0, bytes );
} }
gzReader.close(); gzReader.close();
// int uncompesssedBytes = uncompesssed.readableBytes(); // int uncompressedBytes = uncompressed.readableBytes();
// AELog.info( "Recv: " + originalBytes + " -> " + uncompesssedBytes ); // AELog.info( "Recv: " + originalBytes + " -> " + uncompressedBytes );
while (uncompesssed.readableBytes() > 0) while (uncompressed.readableBytes() > 0)
list.add( AEItemStack.loadItemStackFromPacket( uncompesssed ) ); list.add( AEItemStack.loadItemStackFromPacket( uncompressed ) );
empty = list.isEmpty(); empty = list.isEmpty();
} }