ソースを参照

Fixed validation feedback message for Chimaera Wing recipe cost

Fixes #1703
TfT_02 11 年 前
コミット
4b402d9837

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

@@ -109,7 +109,7 @@ public class Config extends AutoUpdateConfigLoader {
         }
 
         if (getChimaeraRecipeCost() < 1 || getChimaeraRecipeCost() > 9) {
-            reason.add("Items.Chimaera_Wing.Recipe_Cost only accepts values from 1 to 64!");
+            reason.add("Items.Chimaera_Wing.Recipe_Cost only accepts values from 1 to 9!");
         }
 
         if (getChimaeraItem() == null) {

+ 0 - 3
src/main/java/com/gmail/nossr50/util/ChimaeraWing.java

@@ -164,9 +164,6 @@ public final class ChimaeraWing {
     public static ShapelessRecipe getChimaeraWingRecipe() {
         Material ingredient = Config.getInstance().getChimaeraItem();
         int amount = Config.getInstance().getChimaeraRecipeCost();
-        if (amount < 1 || amount > 9) {
-            amount = 9;
-        }
 
         ShapelessRecipe chimeraWing = new ShapelessRecipe(getChimaeraWing(1));
         chimeraWing.addIngredient(amount, ingredient);