goodbye mc.objectMouseOver
This commit is contained in:
parent
9be44c0371
commit
c947c77853
@ -21,6 +21,7 @@ import baritone.api.BaritoneAPI;
|
|||||||
import baritone.api.cache.IWorldData;
|
import baritone.api.cache.IWorldData;
|
||||||
import baritone.api.utils.IPlayerContext;
|
import baritone.api.utils.IPlayerContext;
|
||||||
import baritone.api.utils.IPlayerController;
|
import baritone.api.utils.IPlayerController;
|
||||||
|
import baritone.api.utils.RayTraceUtils;
|
||||||
import baritone.utils.Helper;
|
import baritone.utils.Helper;
|
||||||
import net.minecraft.client.entity.EntityPlayerSP;
|
import net.minecraft.client.entity.EntityPlayerSP;
|
||||||
import net.minecraft.util.math.RayTraceResult;
|
import net.minecraft.util.math.RayTraceResult;
|
||||||
@ -58,6 +59,6 @@ public enum PrimaryPlayerContext implements IPlayerContext, Helper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RayTraceResult objectMouseOver() {
|
public RayTraceResult objectMouseOver() {
|
||||||
return mc.objectMouseOver;
|
return RayTraceUtils.rayTraceTowards(player(), playerRotations(), playerController().getBlockReachDistance());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user