From 39f415d4be151009029f440e99e4926630fe9e29 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 3 Oct 2018 19:00:58 -0700 Subject: [PATCH] allowplace and allowparkourplace --- .../baritone/pathing/movement/movements/MovementParkour.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementParkour.java b/src/main/java/baritone/pathing/movement/movements/MovementParkour.java index 9272b7fc..f88ad28f 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementParkour.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementParkour.java @@ -24,6 +24,7 @@ import baritone.pathing.movement.Movement; import baritone.pathing.movement.MovementHelper; import baritone.pathing.movement.MovementState; import baritone.utils.BlockStateInterface; +import baritone.utils.Helper; import baritone.utils.InputOverrideHandler; import baritone.utils.Utils; import baritone.utils.pathing.BetterBlockPos; @@ -107,6 +108,10 @@ public class MovementParkour extends Movement { if (!Baritone.settings().allowParkourPlace.get()) { return IMPOSSIBLE; } + if (!Baritone.settings().allowPlace.get()) { + Helper.HELPER.logDirect("allowParkourPlace enabled but allowPlace disabled?"); + return IMPOSSIBLE; + } int destX = x + 4 * xDiff; int destZ = z + 4 * zDiff; IBlockState toPlace = BlockStateInterface.get(destX, y - 1, destZ);