From 2d3809452d4ade89d0227ee0f557c37c0141a43e Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:12:49 +0200 Subject: [PATCH] Fixed --- .../trouserstreak/commands/AutoVaultClipCommand.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java index 16d945f09..ebaad5631 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java @@ -16,7 +16,7 @@ public class AutoVaultClipCommand extends Command { public AutoVaultClipCommand() { - super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented"); + super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented. Paper only!"); } @Override public void build(LiteralArgumentBuilder builder) { @@ -80,9 +80,8 @@ public void build(LiteralArgumentBuilder builder) { for (int i = 199; i > 0; i--) { BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); - BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); - BlockPos newopenair2 = isopenair2.up(2); - if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair2).isReplaceable() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair2).isEmpty()) { + BlockPos newopenair2 = isopenair1.up(1); + if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty()) { int packetsRequired = 20; if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); @@ -99,7 +98,7 @@ public void build(LiteralArgumentBuilder builder) { return SINGLE_SUCCESS; } } - error("No gap found to vclip into"); + error("No blocks above you found!"); return SINGLE_SUCCESS; })); }