Let config key take priority here

This commit is contained in:
TfT_02 2014-05-24 15:42:15 +02:00
parent 2fd5d7aa81
commit 4bcef76fd8

View File

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