Added temporary fix for issues with new mcp system.

This commit is contained in:
Chicken-Bomes committed 2013-12-21 23:01:53 +10:00
1 parent 3d64337681
commit 3c81313a8c
1 file changed
+9 -6
+9 -6
View File
@@ -58,14 +58,17 @@ public class MetaPacket extends Packet250CustomPayload
}
@Override
public void writePacketData(DataOutput dataout) throws IOException
{
public void writePacketData(DataOutput dataout) {
//send a dummy 250
super.writePacketData(dataout);
for(Packet p : packets)
Packet.writePacket(p, dataout);
for(Packet p : packets)//TODO: fix extends
try {
Packet.writePacket(p, dataout);
} catch (IOException e) {
e.printStackTrace();
}
//adjust sent size for Packet.writePacket
Packet.sentSize-=getPacketSize()-super.getPacketSize();
}