mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Also prints out the baseline type in outbound packets
This commit is contained in:
@@ -2,6 +2,7 @@ package services;
|
||||
|
||||
import network.packets.soe.DataChannelA;
|
||||
import network.packets.swg.SWGPacket;
|
||||
import network.packets.swg.zone.baselines.Baseline;
|
||||
import intents.InboundPacketIntent;
|
||||
import intents.OutboundPacketIntent;
|
||||
import resources.control.Intent;
|
||||
@@ -53,7 +54,10 @@ public class CoreManager extends Manager {
|
||||
System.out.println("OUT " + out.getNetworkId() + " \t" + out.getPacket().getClass().getSimpleName());
|
||||
if (out.getPacket() instanceof DataChannelA) {
|
||||
for (SWGPacket p : ((DataChannelA) out.getPacket()).getPackets()) {
|
||||
System.out.println(" " + p.getClass().getSimpleName());
|
||||
if (p instanceof Baseline)
|
||||
System.out.println(" Baseline " + ((Baseline)p).getType() + " " + ((Baseline)p).getNum());
|
||||
else
|
||||
System.out.println(" " + p.getClass().getSimpleName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user