mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Added temporary fix for issues with new mcp system.
This commit is contained in:
1 parent
3d64337681
commit
3c81313a8c
1 file changed
+9
-6
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user