goodbye mc.objectMouseOver

This commit is contained in:
Leijurv 2019-02-26 15:07:01 -08:00
parent 9be44c0371
commit c947c77853
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}
}