AvoidBreak means never.

This commit is contained in:
wagyourtail 2021-10-15 00:00:48 -06:00
parent bcc33362b8
commit 4dc4795cb7
No known key found for this signature in database
GPG Key ID: D3DF74B82420E585
2 changed files with 6 additions and 1 deletions

View File

@ -200,6 +200,11 @@ public final class Settings {
Blocks.WALL_SIGN
)));
/**
* make {@link #blocksToAvoidBreaking} mean the block is never broken instead of just <i>strongly</i> discouraging it.
*/
public final Setting<Boolean> avoidBreakingMeansNever = new Setting(false);
/**
* A list of blocks to be treated as if they're air.
* <p>

View File

@ -165,7 +165,7 @@ public class ToolSet {
}
private double avoidanceMultiplier(Block b) {
return Baritone.settings().blocksToAvoidBreaking.value.contains(b) ? 0.1 : 1;
return Baritone.settings().blocksToAvoidBreaking.value.contains(b) ? Baritone.settings().avoidBreakingMeansNever.value ? 0 : 0.1 : 1;
}
/**