mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
parent
36ae84eada
commit
57dfa00541
@ -134,7 +134,7 @@ public class RepairConfig extends ConfigLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Minimum Quantity
|
// Minimum Quantity
|
||||||
int minimumQuantity = (itemMaterial != null ? Repair.getRepairAndSalvageQuantities(new ItemStack(itemMaterial), repairMaterial, repairMetadata) : config.getInt("Repairables." + key + ".MinimumQuantity"));
|
int minimumQuantity = (itemMaterial != null && repairMaterial != null ? Repair.getRepairAndSalvageQuantities(new ItemStack(itemMaterial), repairMaterial, repairMetadata) : config.getInt("Repairables." + key + ".MinimumQuantity"));
|
||||||
|
|
||||||
if (minimumQuantity <= 0) {
|
if (minimumQuantity <= 0) {
|
||||||
reason.add("Minimum quantity of " + key + " must be greater than 0!");
|
reason.add("Minimum quantity of " + key + " must be greater than 0!");
|
||||||
|
Loading…
Reference in New Issue
Block a user