Forráskód Böngészése

Remove double save of the pet on logout, thanks JIV.

_DS_ 15 éve
szülő
commit
58e85979c9

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/network/L2GameClient.java

@@ -298,8 +298,6 @@ public final class L2GameClient extends MMOClient<MMOConnection<L2GameClient>>
         try
         {
             cha.store();
-            if (cha.getPet() != null)
-            	cha.getPet().store();
             if (Config.UPDATE_ITEMS_ON_CHAR_STORE)
             {
                 cha.getInventory().updateDatabase();
@@ -727,6 +725,8 @@ public final class L2GameClient extends MMOClient<MMOConnection<L2GameClient>>
 				if (player != null)
 				{
 					saveCharToDisk(player);
+		            if (player.getPet() != null)
+		            	player.getPet().store();
 				}
 			}
 			catch (Exception e)