allowplace and allowparkourplace

This commit is contained in:
Leijurv 2018-10-03 19:00:58 -07:00
parent 4590b9f6da
commit 39f415d4be
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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);