mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed a bug where shovels took too many materials to repair
This commit is contained in:
parent
705285878f
commit
963d0a1897
@ -1,3 +1,6 @@
|
||||
Version 2.1.78
|
||||
|
||||
|
||||
Version 2.1.77
|
||||
Added minimum quantity back to Repair config
|
||||
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user