Change use sword to mine to default to true.
Signed-off-by: scorbett123 <50634068+scorbett123@users.noreply.github.com>
This commit is contained in:
@@ -1121,7 +1121,7 @@ public final class Settings {
|
|||||||
/**
|
/**
|
||||||
* Use sword to mine.
|
* Use sword to mine.
|
||||||
*/
|
*/
|
||||||
public final Setting<Boolean> useSwordToMine = new Setting<>(false);
|
public final Setting<Boolean> useSwordToMine = new Setting<>(true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Desktop notifications
|
* Desktop notifications
|
||||||
|
@@ -125,14 +125,13 @@ public class ToolSet {
|
|||||||
IBlockState blockState = b.getDefaultState();
|
IBlockState blockState = b.getDefaultState();
|
||||||
for (int i = 0; i < 9; i++) {
|
for (int i = 0; i < 9; i++) {
|
||||||
ItemStack itemStack = player.inventory.getStackInSlot(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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Baritone.settings().itemSaver.value && itemStack.getItemDamage() >= itemStack.getMaxDamage() && itemStack.getMaxDamage() > 1) {
|
if (Baritone.settings().itemSaver.value && itemStack.getItemDamage() >= itemStack.getMaxDamage() && itemStack.getMaxDamage() > 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
double speed = calculateSpeedVsBlock(itemStack, blockState);
|
double speed = calculateSpeedVsBlock(itemStack, blockState);
|
||||||
boolean silkTouch = hasSilkTouch(itemStack);
|
boolean silkTouch = hasSilkTouch(itemStack);
|
||||||
if (speed > highestSpeed) {
|
if (speed > highestSpeed) {
|
||||||
|
Reference in New Issue
Block a user