allowplace and allowparkourplace
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user