Add auto tool settings because 2 lines of code lols

This commit is contained in:
RealIndrit 2020-08-13 22:36:34 +02:00
parent b187d86074
commit 2ddc2c3660
2 changed files with 6 additions and 1 deletions

View File

@ -61,6 +61,11 @@ public final class Settings {
*/
public final Setting<Boolean> allowInventory = new Setting<>(false);
/**
* Allow player to decide if to use auto tool or not
*/
public final Setting<Boolean> autoTool = new Setting<>(true);
/**
* It doesn't actually take twenty ticks to place a block, this cost is so high
* because we want to generally conserve blocks which might be limited.

View File

@ -127,7 +127,7 @@ public class ToolSet {
}
}
}
return best;
return Baritone.settings().autoTool.value? best : player.inventory.currentItem;
}
/**