when asusmeSafeWalk is on, we don't sneak in the first place

This commit is contained in:
Leijurv 2018-10-05 13:11:09 -07:00
parent cb589219d8
commit 9880a4e948
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -269,7 +269,7 @@ public class MovementTraverse extends Movement {
state.setTarget(new MovementState.MovementTarget(Utils.calcRotationFromVec3d(playerHead(), new Vec3d(faceX, faceY, faceZ), playerRotations()), true));
EnumFacing side = Minecraft.getMinecraft().objectMouseOver.sideHit;
if (Objects.equals(LookBehaviorUtils.getSelectedBlock().orElse(null), against1) && Minecraft.getMinecraft().player.isSneaking()) {
if (Objects.equals(LookBehaviorUtils.getSelectedBlock().orElse(null), against1) && (Minecraft.getMinecraft().player.isSneaking() || Baritone.settings().assumeSafeWalk.get())) {
if (LookBehaviorUtils.getSelectedBlock().get().offset(side).equals(positionToPlace)) {
return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true);
}