extra parenthesis

This commit is contained in:
Logan Darklock 2019-09-01 15:18:59 -07:00
parent 0b953a237d
commit 150f7a9fd9
No known key found for this signature in database
GPG Key ID: B8C37CEDE1AC60EA

View File

@ -117,7 +117,7 @@ public class ToolSet {
bestSilkTouch = silkTouch;
} else if (speed == highestSpeed) {
int cost = getMaterialCost(itemStack);
if (cost < lowestCost && (silkTouch || !bestSilkTouch) ||
if ((cost < lowestCost && (silkTouch || !bestSilkTouch)) ||
(preferSilkTouch && !bestSilkTouch && silkTouch)) {
highestSpeed = speed;
best = i;