Fixed chat bug where spatial chat doesn't work on two clients

This commit is contained in:
Obique
2015-02-21 12:04:05 -06:00
committed by Obique
parent 714d0da126
commit 00ca39ca50
3 changed files with 14 additions and 6 deletions
+12 -2
View File
@@ -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