Selaa lähdekoodia

Msg about missing clan for debug only.

JIV 15 vuotta sitten
vanhempi
sitoutus
caf04ad146

+ 2 - 2
L2_GameServer/java/com/l2jserver/gameserver/model/quest/QuestState.java

@@ -527,7 +527,7 @@ public final class QuestState
 	/**
 	 * Return the quantity of one sort of item hold by the player
 	 * @param itemId : ID of the item wanted to be count
-	 * @return int
+	 * @return long
 	 */
 	public long getQuestItemsCount(int itemId)
 	{
@@ -680,7 +680,7 @@ public final class QuestState
 	/**
 	 * Drop Quest item using Config.RATE_DROP_QUEST
 	 * @param itemId : int Item Identifier of the item to be dropped
-	 * @param count(minCount, maxCount) : int Quantity of items to be dropped
+	 * @param count(minCount, maxCount) : long Quantity of items to be dropped
 	 * @param neededCount : Quantity of items needed for quest
 	 * @param dropChance : int Base chance of drop, same as in droplist
 	 * @param sound : boolean indicating whether to play sound

+ 3 - 1
L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestPledgeInfo.java

@@ -17,6 +17,7 @@ package com.l2jserver.gameserver.network.clientpackets;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
+import com.l2jserver.Config;
 import com.l2jserver.gameserver.datatables.ClanTable;
 import com.l2jserver.gameserver.model.L2Clan;
 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
@@ -56,7 +57,8 @@ public final class RequestPledgeInfo extends L2GameClientPacket
 		L2Clan clan = ClanTable.getInstance().getClan(_clanId);
 		if (clan == null)
 		{
-			_log.warning("Clan data for clanId " + _clanId + " is missing for player "+activeChar.getName());
+			if (Config.DEBUG)
+				_log.warning("Clan data for clanId " + _clanId + " is missing for player "+activeChar.getName());
 			return; // we have no clan data ?!? should not happen
 		}