return;
}
//System.out.println("Writing Packet Data for " + packet.getPacketType());
var1.writeShort(packet.getPacketType().getId());
var1.writeShort(packet.getVersion());
final SpoutOutputStream stream = new SpoutOutputStream();
packet.writeData(stream);
ByteBuffer buffer = stream.getRawBuffer();
byte[] data = new byte[buffer.capacity() - buffer.remaining()];
System.arraycopy(buffer.array(), 0, data, 0, data.length);
var1.writeInt(data.length);
var1.write(data, 0, data.length);