Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
agreed31579 authored Feb 3, 2024
1 parent a57eb1c commit 2d38094
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<CommandSource> builder) {
Expand Down Expand Up @@ -80,9 +80,8 @@ public void build(LiteralArgumentBuilder<CommandSource> 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();
Expand All @@ -99,7 +98,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
return SINGLE_SUCCESS;
}
}
error("No gap found to vclip into");
error("No blocks above you found!");
return SINGLE_SUCCESS;
}));
}
Expand Down

0 comments on commit 2d38094

Please sign in to comment.