From c947c778536e46b4ead96838142e4da41af094ab Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 26 Feb 2019 15:07:01 -0800 Subject: [PATCH] goodbye mc.objectMouseOver --- src/main/java/baritone/utils/player/PrimaryPlayerContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/player/PrimaryPlayerContext.java b/src/main/java/baritone/utils/player/PrimaryPlayerContext.java index 1eefc91f..20fe9836 100644 --- a/src/main/java/baritone/utils/player/PrimaryPlayerContext.java +++ b/src/main/java/baritone/utils/player/PrimaryPlayerContext.java @@ -21,6 +21,7 @@ import baritone.api.BaritoneAPI; import baritone.api.cache.IWorldData; import baritone.api.utils.IPlayerContext; import baritone.api.utils.IPlayerController; +import baritone.api.utils.RayTraceUtils; import baritone.utils.Helper; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.util.math.RayTraceResult; @@ -58,6 +59,6 @@ public enum PrimaryPlayerContext implements IPlayerContext, Helper { @Override public RayTraceResult objectMouseOver() { - return mc.objectMouseOver; + return RayTraceUtils.rayTraceTowards(player(), playerRotations(), playerController().getBlockReachDistance()); } }