Prechádzať zdrojové kódy

fix bypass, thx lion for reporting

janiii 15 rokov pred
rodič
commit
96eed4fdc7

+ 4 - 2
L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2ClanTraderInstance.java

@@ -42,6 +42,7 @@ public final class L2ClanTraderInstance extends L2Npc
 				html.setFile("data/html/clantrader/" + getNpcId() + "-1.htm");
 
 			sendHtmlMessage(player, html);
+			return;
 		}
 		else if (command.startsWith("exchange"))
 		{
@@ -88,9 +89,10 @@ public final class L2ClanTraderInstance extends L2Npc
 				html.setFile("data/html/clantrader/" + getNpcId() + "-ExchangeFailed.htm");
 
 			sendHtmlMessage(player, html);
+			return;
 		}
-
-		super.onBypassFeedback(player, command);
+		else
+			super.onBypassFeedback(player, command);
 	}
 
 	private void sendHtmlMessage(L2PcInstance player, NpcHtmlMessage html)

+ 4 - 1
L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2WarehouseInstance.java

@@ -180,8 +180,9 @@ public final class L2WarehouseInstance extends L2NpcInstance
 				showRetrieveWindow(player, WarehouseListType.ALL, SortedWareHouseWithdrawalList.A2Z);
 		}
 		else if (command.equals("DepositP"))
+		{
 			showDepositWindow(player);
-
+		}
 		else if (command.startsWith("WithdrawC"))
 		{
 			if (Config.L2JMOD_ENABLE_WAREHOUSESORTING_CLAN)
@@ -215,7 +216,9 @@ public final class L2WarehouseInstance extends L2NpcInstance
 				showWithdrawWindowClan(player, WarehouseListType.ALL, SortedWareHouseWithdrawalList.A2Z);
 		}
 		else if (command.equals("DepositC"))
+		{
 			showDepositWindowClan(player);
+		}
 		else
 		{
 			super.onBypassFeedback(player, command);