mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Let config key take priority here
This commit is contained in:
parent
2fd5d7aa81
commit
4bcef76fd8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user