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
+2 -3
View File
@@ -217,9 +217,7 @@ public class ConnectionService implements INetworkDispatch {
core.chatService.playerStatusChange(objectShortName, (byte) 0);
}
session.suspendWrite();
long parentId = object.getParentId();
if(object.getContainer() == null) {
@@ -242,6 +240,7 @@ public class ConnectionService implements INetworkDispatch {
ghost.toggleFlag(PlayerFlags.LD);
object.setAttachment("disconnectTask", null);
object.setAttachment("buffWorkshop", null);
object.createTransaction(core.getCreatureODB().getEnvironment());
core.getCreatureODB().put(object, Long.class, CreatureObject.class, object.getTransaction());
object.getTransaction().commitSync();