Fixed a bug where shovels took too many materials to repair

This commit is contained in:
nossr50 2019-06-12 06:20:20 -07:00
parent 705285878f
commit 963d0a1897
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Version 2.1.78
Version 2.1.77
Added minimum quantity back to Repair config

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.77</version>
<version>2.1.78-SNAPSHOT</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>

View File

@ -68,7 +68,7 @@ public class SimpleRepairable implements Repairable {
@Override
public int getMinimumQuantity() {
if(minQuantity == -1)
return Math.max(SkillUtils.getRepairAndSalvageQuantities(itemMaterial, repairMaterial), 2);
return Math.max(SkillUtils.getRepairAndSalvageQuantities(itemMaterial, repairMaterial), 1);
else
return minQuantity;
}