Change use sword to mine to default to true.

Signed-off-by: scorbett123 <50634068+scorbett123@users.noreply.github.com>
This commit is contained in:
scorbett123 2021-02-08 08:34:31 +00:00
parent 4ae81a3b0b
commit 1f10199e64
2 changed files with 2 additions and 3 deletions

View File

@ -1121,7 +1121,7 @@ public final class Settings {
/**
* Use sword to mine.
*/
public final Setting<Boolean> useSwordToMine = new Setting<>(false);
public final Setting<Boolean> useSwordToMine = new Setting<>(true);
/**
* Desktop notifications

View File

@ -125,14 +125,13 @@ public class ToolSet {
IBlockState blockState = b.getDefaultState();
for (int i = 0; i < 9; i++) {
ItemStack itemStack = player.inventory.getStackInSlot(i);
if (!Baritone.settings().useSwordToMine.value && itemStack.getItem() instanceof ItemSword){
if (!Baritone.settings().useSwordToMine.value && itemStack.getItem() instanceof ItemSword) {
continue;
}
if (Baritone.settings().itemSaver.value && itemStack.getItemDamage() >= itemStack.getMaxDamage() && itemStack.getMaxDamage() > 1) {
continue;
}
double speed = calculateSpeedVsBlock(itemStack, blockState);
boolean silkTouch = hasSilkTouch(itemStack);
if (speed > highestSpeed) {