Fix logic error
This commit is contained in:
parent
48f6d338a6
commit
0b953a237d
@ -117,7 +117,8 @@ public class ToolSet {
|
|||||||
bestSilkTouch = silkTouch;
|
bestSilkTouch = silkTouch;
|
||||||
} else if (speed == highestSpeed) {
|
} else if (speed == highestSpeed) {
|
||||||
int cost = getMaterialCost(itemStack);
|
int cost = getMaterialCost(itemStack);
|
||||||
if ((cost < lowestCost && (!preferSilkTouch || (!bestSilkTouch && silkTouch)))) {
|
if (cost < lowestCost && (silkTouch || !bestSilkTouch) ||
|
||||||
|
(preferSilkTouch && !bestSilkTouch && silkTouch)) {
|
||||||
highestSpeed = speed;
|
highestSpeed = speed;
|
||||||
best = i;
|
best = i;
|
||||||
lowestCost = cost;
|
lowestCost = cost;
|
||||||
|
Loading…
Reference in New Issue
Block a user