AvoidBreak means never.

This commit is contained in:
wagyourtail committed 2021-10-15 00:00:48 -06:00
1 parent bcc33362b8
commit 4dc4795cb7
2 files changed
+6 -1

No files matched your search

+5
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>
+1 -1
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;
}
/**