AvoidBreak means never.
This commit is contained in:
parent
bcc33362b8
commit
4dc4795cb7
@ -200,6 +200,11 @@ public final class Settings {
|
|||||||
Blocks.WALL_SIGN
|
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.
|
* A list of blocks to be treated as if they're air.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -165,7 +165,7 @@ public class ToolSet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private double avoidanceMultiplier(Block b) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user