some bug fixes + updated engine with networking fixes

This commit is contained in:
Light2
2013-12-28 19:16:51 +01:00
parent c3cf8713bf
commit acf78858a6
14 changed files with 72 additions and 40 deletions
+3 -6
View File
@@ -120,11 +120,8 @@ public class ObjectService implements INetworkDispatch {
synchronized(objectList) {
for(SWGObject obj : objectList.values()) {
if(obj.getSlottedObject("ghost") != null) {
CreatureObject creature = (CreatureObject) obj;
creature.setAttachment("disconnectTask", null);
creature.createTransaction(core.getCreatureODB().getEnvironment());
core.getCreatureODB().put(creature, Long.class, CreatureObject.class, creature.getTransaction());
if(obj.getClient() != null && obj.getClient().getSession() != null) {
core.connectionService.disconnect(obj.getClient().getSession());
}
}
@@ -597,7 +594,7 @@ public class ObjectService implements INetworkDispatch {
core.buffService.clearBuffs(creature);
CmdStartScene startScene = new CmdStartScene((byte) 0, objectId, creature.getPlanet().getPath(), creature.getTemplate(), position.x, position.y, position.z, System.currentTimeMillis() / 1000, 0);
CmdStartScene startScene = new CmdStartScene((byte) 0, objectId, creature.getPlanet().getPath(), creature.getTemplate(), position.x, position.y, position.z, core.getGalacticTime(), 0);
session.write(startScene.serialize());
ParametersMessage parameters = new ParametersMessage();