소스 검색

Fixed issues with level caps having a tab character in the config file.

gmcferrin 13 년 전
부모
커밋
b4a3ddba3c
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 2
      src/main/java/com/gmail/nossr50/config/LoadProperties.java
  2. 3 3
      src/main/resources/config.yml

+ 1 - 2
src/main/java/com/gmail/nossr50/config/LoadProperties.java

@@ -67,7 +67,6 @@ public class LoadProperties {
 			fishingDropChanceTier2, fishingDropChanceTier3,
 			fishingDropChanceTier4, fishingDropChanceTier5, mnetherwart,
 			mvines, mlilypad, mnetherbrick, mendstone, mmossstone, mstonebrick,
-			
 			levelCapAcrobatics, levelCapArchery, levelCapAxes, levelCapExcavation,
 			levelCapFishing, levelCapHerbalism, levelCapMining, levelCapRepair,
 			levelCapSwords, levelCapTaming, levelCapUnarmed, levelCapWoodcutting;
@@ -355,7 +354,7 @@ public class LoadProperties {
 		levelCapSwords = readInteger("Skills.Swords.Level_Cap", 0);
 		levelCapTaming = readInteger("Skills.Taming.Level_Cap", 0);
 		levelCapUnarmed = readInteger("Skills.Unarmed.Level_Cap", 0);
-		levelCapWoodcutting  = readInteger("Skills.Woodcutting.Level_Cap", 0);
+		levelCapWoodcutting = readInteger("Skills.Woodcutting.Level_Cap", 0);
 
 		mayDowngradeEnchants = readBoolean("Arcane_Forging.Downgrades.Enabled", true);
 		downgradeRank1 = readInteger("Arcane_Forging.Downgrades.Chance.Rank_1", 75);

+ 3 - 3
src/main/resources/config.yml

@@ -107,11 +107,11 @@ Fishing:
         Wooden_Tools: true
 Skills:
     Acrobatics:
-	    Level_Cap: 0    #Level cap of 0 for no limit
+        Level_Cap: 0    #Level cap of 0 for no limit
     Archery:
-	    Level_Cap: 0
+        Level_Cap: 0
     Axes:
-	    Level_Cap: 0
+        Level_Cap: 0
     Excavation:
         Level_Cap: 0
         Requires_Shovel: true