mirror of https://github.com/cabaletta/baritone
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.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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue