Explorar o código

CH fee fix, thanks Gnacik

_DS_ %!s(int64=15) %!d(string=hai) anos
pai
achega
40f34883bc

+ 2 - 3
L2_GameServer/java/com/l2jserver/gameserver/model/entity/ClanHall.java

@@ -592,15 +592,14 @@ public class ClanHall
 				{
 					if (_paidUntil != 0)
 					{
-						while (_paidUntil < System.currentTimeMillis())
+						while (_paidUntil <= System.currentTimeMillis())
 							_paidUntil += _chRate;
 					}
 					else
 						_paidUntil = System.currentTimeMillis() + _chRate;
 					ClanTable.getInstance().getClan(getOwnerId()).getWarehouse().destroyItemByItemId("CH_rental_fee", 57, getLease(), null, null);
 					if (Config.DEBUG)
-						_log.warning("deducted " + getLease() + " adena from " + getName() + " owner's cwh for ClanHall _paidUntil"
-								+ _paidUntil);
+						_log.warning("deducted " + getLease() + " adena from " + getName() + " owner's cwh for ClanHall _paidUntil: " + _paidUntil);
 					ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), _paidUntil - System.currentTimeMillis());
 					_paid = true;
 					updateDb();