freecam meme
This commit is contained in:
parent
6cc29712e2
commit
0a2e3f98f9
@ -41,11 +41,12 @@ import baritone.utils.IRenderer;
|
|||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.util.EnumFacing;
|
import net.minecraft.util.EnumFacing;
|
||||||
import net.minecraft.util.math.AxisAlignedBB;
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.Vec3i;
|
import net.minecraft.util.math.Vec3i;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.List;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.List;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ public class SelCommand extends Command {
|
|||||||
if (action == Action.POS2 && pos1 == null) {
|
if (action == Action.POS2 && pos1 == null) {
|
||||||
throw new CommandInvalidStateException("Set pos1 first before using pos2");
|
throw new CommandInvalidStateException("Set pos1 first before using pos2");
|
||||||
}
|
}
|
||||||
BetterBlockPos playerPos = ctx.playerFeet();
|
BetterBlockPos playerPos = mc.getRenderViewEntity() != null ? BetterBlockPos.from(new BlockPos(mc.getRenderViewEntity())) : ctx.playerFeet();
|
||||||
BetterBlockPos pos = args.has() ? args.getDatatypePost(RelativeBlockPos.class, playerPos) : playerPos;
|
BetterBlockPos pos = args.has() ? args.getDatatypePost(RelativeBlockPos.class, playerPos) : playerPos;
|
||||||
args.requireMax(0);
|
args.requireMax(0);
|
||||||
if (action == Action.POS1) {
|
if (action == Action.POS1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user