add setting to disable unruly vines

This commit is contained in:
leijurv 2018-08-20 20:41:45 -07:00
parent 25d3fa7676
commit 8ee65f1212
2 changed files with 7 additions and 1 deletions

View File

@ -65,6 +65,12 @@ public class Settings {
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.
* As long as your cost heuristic is an *underestimate*, it's guaranteed to find you the best path.

View File

@ -140,7 +140,7 @@ public interface MovementHelper extends ActionCosts, Helper {
*/
static boolean canWalkOn(BlockPos pos, IBlockState state) {
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;
}
if (block instanceof BlockGlass || block instanceof BlockStainedGlass) {