mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +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
|
Version 2.1.77
|
||||||
Added minimum quantity back to Repair config
|
Added minimum quantity back to Repair config
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user