Why calculate stuff that isnt needed...
This commit is contained in:
parent
2ddc2c3660
commit
2b6fe188ed
@ -432,7 +432,9 @@ public interface MovementHelper extends ActionCosts, Helper {
|
||||
* @param ts previously calculated ToolSet
|
||||
*/
|
||||
static void switchToBestToolFor(IPlayerContext ctx, IBlockState b, ToolSet ts, boolean preferSilkTouch) {
|
||||
ctx.player().inventory.currentItem = ts.getBestSlot(b.getBlock(), preferSilkTouch);
|
||||
if(Baritone.settings().autoTool.value){
|
||||
ctx.player().inventory.currentItem = ts.getBestSlot(b.getBlock(), preferSilkTouch);
|
||||
}
|
||||
}
|
||||
|
||||
static void moveTowards(IPlayerContext ctx, MovementState state, BlockPos pos) {
|
||||
|
@ -127,7 +127,7 @@ public class ToolSet {
|
||||
}
|
||||
}
|
||||
}
|
||||
return Baritone.settings().autoTool.value? best : player.inventory.currentItem;
|
||||
return best;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user