mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fixed validation feedback message for Chimaera Wing recipe cost
Fixes #1703
This commit is contained in:
parent
6c2b1f555f
commit
4b402d9837
@ -109,7 +109,7 @@ public class Config extends AutoUpdateConfigLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getChimaeraRecipeCost() < 1 || getChimaeraRecipeCost() > 9) {
|
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) {
|
if (getChimaeraItem() == null) {
|
||||||
|
@ -164,9 +164,6 @@ public final class ChimaeraWing {
|
|||||||
public static ShapelessRecipe getChimaeraWingRecipe() {
|
public static ShapelessRecipe getChimaeraWingRecipe() {
|
||||||
Material ingredient = Config.getInstance().getChimaeraItem();
|
Material ingredient = Config.getInstance().getChimaeraItem();
|
||||||
int amount = Config.getInstance().getChimaeraRecipeCost();
|
int amount = Config.getInstance().getChimaeraRecipeCost();
|
||||||
if (amount < 1 || amount > 9) {
|
|
||||||
amount = 9;
|
|
||||||
}
|
|
||||||
|
|
||||||
ShapelessRecipe chimeraWing = new ShapelessRecipe(getChimaeraWing(1));
|
ShapelessRecipe chimeraWing = new ShapelessRecipe(getChimaeraWing(1));
|
||||||
chimeraWing.addIngredient(amount, ingredient);
|
chimeraWing.addIngredient(amount, ingredient);
|
||||||
|
Loading…
Reference in New Issue
Block a user