add setting to disable unruly vines
This commit is contained in:
parent
25d3fa7676
commit
8ee65f1212
@ -65,6 +65,12 @@ public class Settings {
|
|||||||
Item.getItemFromBlock(Blocks.NETHERRACK)
|
Item.getItemFromBlock(Blocks.NETHERRACK)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enables some more advanced vine features. They're honestly just gimmicks and won't ever be needed in real
|
||||||
|
* pathing scenarios. And they can cause Baritone to get trapped indefinitely in a strange scenario.
|
||||||
|
*/
|
||||||
|
public Setting<Boolean> allowVines = new Setting<>(false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the big A* setting.
|
* This is the big A* setting.
|
||||||
* As long as your cost heuristic is an *underestimate*, it's guaranteed to find you the best path.
|
* As long as your cost heuristic is an *underestimate*, it's guaranteed to find you the best path.
|
||||||
|
@ -140,7 +140,7 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
*/
|
*/
|
||||||
static boolean canWalkOn(BlockPos pos, IBlockState state) {
|
static boolean canWalkOn(BlockPos pos, IBlockState state) {
|
||||||
Block block = state.getBlock();
|
Block block = state.getBlock();
|
||||||
if (block instanceof BlockLadder || block instanceof BlockVine) { // TODO reconsider this
|
if (block instanceof BlockLadder || (Baritone.settings().allowVines.get() && block instanceof BlockVine)) { // TODO reconsider this
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (block instanceof BlockGlass || block instanceof BlockStainedGlass) {
|
if (block instanceof BlockGlass || block instanceof BlockStainedGlass) {
|
||||||
|
Loading…
Reference in New Issue
Block a user