Validate config.yml settings

This commit is contained in:
TfT_02
2013-07-12 18:49:02 +02:00
parent aeaab43f44
commit ccbffca278
2 changed files with 179 additions and 2 deletions

View File

@ -160,7 +160,7 @@ public final class ChimaeraWing {
public static ShapelessRecipe getChimaeraWingRecipe() {
Material ingredient = Material.getMaterial(Config.getInstance().getChimaeraItemId());
int amount = Config.getInstance().getChimaeraRecipeCost();
if (amount > 9) {
if (amount < 1 || amount > 9) {
amount = 9;
}