Fix Maximum Quantity in Salvage configs

This commit is contained in:
TfT_02 2014-05-24 15:23:50 +02:00
parent 3403aef37d
commit 5080c68dce

View File

@ -123,7 +123,7 @@ public class SalvageConfig extends ConfigLoader {
} }
// Maximum Quantity // Maximum Quantity
int maximumQuantity = (itemMaterial != null ? SkillUtils.getRepairAndSalvageQuantities(new ItemStack(itemMaterial), salvageMaterial, salvageMetadata) : config.getInt("Repairables." + key + ".MaximumQuantity", 2)); int maximumQuantity = (itemMaterial != null ? SkillUtils.getRepairAndSalvageQuantities(new ItemStack(itemMaterial), salvageMaterial, salvageMetadata) : config.getInt("Salvageables." + key + ".MaximumQuantity", 2));
if (maximumQuantity <= 0 && itemMaterial != null) { if (maximumQuantity <= 0 && itemMaterial != null) {
maximumQuantity = config.getInt("Salvageables." + key + ".MaximumQuantity", 2); maximumQuantity = config.getInt("Salvageables." + key + ".MaximumQuantity", 2);