mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Fixed chat bug where spatial chat doesn't work on two clients
This commit is contained in:
@@ -155,13 +155,23 @@ public class CoreManager extends Manager {
|
||||
|
||||
private void outputSWG(SWGPacket p) {
|
||||
if (p instanceof Baseline)
|
||||
packetOutput.println("Baseline " + ((Baseline)p).getType() + " " + ((Baseline)p).getNum());
|
||||
outputBaseline((Baseline) p);
|
||||
else if (p instanceof ObjectController)
|
||||
packetOutput.println("ObjectController 0x" + Integer.toHexString(((ObjectController)p).getControllerCrc()));
|
||||
outputObjectController((ObjectController) p);
|
||||
else
|
||||
packetOutput.println(p.getClass().getSimpleName());
|
||||
}
|
||||
|
||||
private void outputBaseline(Baseline b) {
|
||||
packetOutput.println("Baseline [" + b.getId() + "] " + b.getType() + " " + b.getNum());
|
||||
}
|
||||
|
||||
private void outputObjectController(ObjectController cont) {
|
||||
int crc = cont.getControllerCrc();
|
||||
long id = cont.getObjectId();
|
||||
packetOutput.println("ObjectController [" + id + "] 0x" + Integer.toHexString(crc));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the time in milliseconds since the server started initialization
|
||||
* @return the core time represented as a double
|
||||
|
||||
Reference in New Issue
Block a user