Fix compile time compatibility with new and old forge

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