Add auto tool settings because 2 lines of code lols
This commit is contained in:
parent
b187d86074
commit
2ddc2c3660
@ -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.
|
||||
|
@ -127,7 +127,7 @@ public class ToolSet {
|
||||
}
|
||||
}
|
||||
}
|
||||
return best;
|
||||
return Baritone.settings().autoTool.value? best : player.inventory.currentItem;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user