mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-28 23:15:53 -04:00
some bug fixes + updated engine with networking fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user