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 Version 2.1.77
Added minimum quantity back to Repair config Added minimum quantity back to Repair config

View File

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

View File

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