Merge branch 'master' of github.com:cabaletta/baritone

This commit is contained in:
Leijurv 2018-08-05 20:48:26 -04:00
commit 84aeca710e
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -72,7 +72,7 @@ public final class LookBehaviorUtils implements Helper{
* @param offset
* @return
*/
public static Optional<Tuple<Float, Float>> reachableRotation(BlockPos pos, Vec3d offset) {
protected static Optional<Tuple<Float, Float>> reachableRotation(BlockPos pos, Vec3d offset) {
Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F),
offset);
RayTraceResult result = raytraceTowards(rotation);
@ -88,7 +88,7 @@ public final class LookBehaviorUtils implements Helper{
* @param pos
* @return
*/
public static Optional<Tuple<Float, Float>> reachableCenter(BlockPos pos) {
protected static Optional<Tuple<Float, Float>> reachableCenter(BlockPos pos) {
Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F),
Utils.calcCenterFromCoords(pos, mc.world));
RayTraceResult result = raytraceTowards(rotation);