소스 검색

BETA: Fixing minor typo preventing ally crests from being converted from their old format.
* Reported by: lion

Rumen Nikiforov 11 년 전
부모
커밋
eb3723b8ea
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/CrestTable.java

+ 5 - 5
L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/CrestTable.java

@@ -174,7 +174,7 @@ public final class CrestTable
 						final int crestId = Integer.parseInt(file.getName().substring(12, file.getName().length() - 4));
 						if (crestsInUse.contains(crestId))
 						{
-							L2Crest crest = createCrest(data, CrestType.PLEDGE_LARGE);
+							final L2Crest crest = createCrest(data, CrestType.PLEDGE_LARGE);
 							if (crest != null)
 							{
 								for (L2Clan clan : ClanTable.getInstance().getClans())
@@ -193,7 +193,7 @@ public final class CrestTable
 						final int crestId = Integer.parseInt(file.getName().substring(6, file.getName().length() - 4));
 						if (crestsInUse.contains(crestId))
 						{
-							L2Crest crest = createCrest(data, CrestType.PLEDGE);
+							final L2Crest crest = createCrest(data, CrestType.PLEDGE);
 							if (crest != null)
 							{
 								for (L2Clan clan : ClanTable.getInstance().getClans())
@@ -212,15 +212,15 @@ public final class CrestTable
 						final int crestId = Integer.parseInt(file.getName().substring(10, file.getName().length() - 4));
 						if (crestsInUse.contains(crestId))
 						{
-							L2Crest crest = createCrest(data, CrestType.ALLY);
+							final L2Crest crest = createCrest(data, CrestType.ALLY);
 							if (crest != null)
 							{
 								for (L2Clan clan : ClanTable.getInstance().getClans())
 								{
-									if (clan.getAllyId() == crestId)
+									if (clan.getAllyCrestId() == crestId)
 									{
 										clan.setAllyCrestId(0);
-										clan.changeAllyCrest(clan.getCrestId(), false);
+										clan.changeAllyCrest(crest.getId(), false);
 									}
 								}
 							}