瀏覽代碼

Allow less than one percentages for hardcore losses

t00thpick1 11 年之前
父節點
當前提交
5c2b523f7a
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/java/com/gmail/nossr50/config/Config.java

+ 4 - 4
src/main/java/com/gmail/nossr50/config/Config.java

@@ -75,12 +75,12 @@ public class Config extends AutoUpdateConfigLoader {
         }
 
         /* Hardcore Mode */
-        if (getHardcoreDeathStatPenaltyPercentage() < 1 || getHardcoreDeathStatPenaltyPercentage() > 100) {
-            reason.add("Hardcore.Death_Stat_Loss.Penalty_Percentage only accepts values from 1 to 100!");
+        if (getHardcoreDeathStatPenaltyPercentage() < 0.01 || getHardcoreDeathStatPenaltyPercentage() > 100) {
+            reason.add("Hardcore.Death_Stat_Loss.Penalty_Percentage only accepts values from 0.01 to 100!");
         }
 
-        if (getHardcoreVampirismStatLeechPercentage() < 1 || getHardcoreVampirismStatLeechPercentage() > 100) {
-            reason.add("Hardcore.Vampirism.Leech_Percentage only accepts values from 1 to 100!");
+        if (getHardcoreVampirismStatLeechPercentage() < 0.01 || getHardcoreVampirismStatLeechPercentage() > 100) {
+            reason.add("Hardcore.Vampirism.Leech_Percentage only accepts values from 0.01 to 100!");
         }
 
         /* Items */