From 263695053d997e75ec4a10f0de3ea0cb8a0de80c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 6 Sep 2024 23:02:34 -0400 Subject: 1.21 ... maybe (still testing) Special thanks to Xenapte for the 1.20.6 patch. --- .../java/org/chrisoft/trashyaddon/commands/EntityDataCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/chrisoft/trashyaddon/commands/EntityDataCommand.java') diff --git a/src/main/java/org/chrisoft/trashyaddon/commands/EntityDataCommand.java b/src/main/java/org/chrisoft/trashyaddon/commands/EntityDataCommand.java index 4f88655..a6ab279 100644 --- a/src/main/java/org/chrisoft/trashyaddon/commands/EntityDataCommand.java +++ b/src/main/java/org/chrisoft/trashyaddon/commands/EntityDataCommand.java @@ -27,8 +27,8 @@ public class EntityDataCommand extends Command { //info("erectile dysfunction start"); double RANGE = 5; Entity player = mc.cameraEntity; - Vec3d rot = player.getRotationVec(mc.getTickDelta()); - Vec3d min = player.getCameraPosVec(mc.getTickDelta()); + Vec3d rot = player.getRotationVec(1.f); + Vec3d min = player.getCameraPosVec(1.f); Vec3d max = min.add(rot.multiply(RANGE)); Box box = player.getBoundingBox().stretch(rot.multiply(RANGE)); EntityHitResult eh = ProjectileUtil.raycast(player, min, max, box, x -> true ,RANGE * RANGE); -- cgit v1.2.3