mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 07:47:47 +00:00
Fix compile time compatibility with new and old forge
This commit is contained in:
1 parent
ffc284349e
commit
eb6f5e5e7b
1 file changed
+9
-9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user