Browse Source

BETA: Fix for L2JMod Offline Shops, now players won't remain standing after disconnect if they aren't in shop mode.

Zoey76 13 years ago
parent
commit
68340238d3

+ 1 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/network/L2GameClient.java

@@ -728,8 +728,7 @@ public final class L2GameClient extends MMOClient<MMOConnection<L2GameClient>> i
 							&& !player.isInJail()
 							&& player.getVehicle() == null)
 					{
-						if ((player.isInStoreMode() && Config.OFFLINE_TRADE_ENABLE)
-								|| (player.isInCraftMode() && Config.OFFLINE_CRAFT_ENABLE))
+						if ((((player.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_SELL) || (player.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_BUY)) && Config.OFFLINE_TRADE_ENABLE) || (player.isInCraftMode() && Config.OFFLINE_CRAFT_ENABLE))
 						{
 							player.leaveParty();