Merge branch 'master' of github.com:cabaletta/baritone
This commit is contained in:
commit
84aeca710e
@ -72,7 +72,7 @@ public final class LookBehaviorUtils implements Helper{
|
|||||||
* @param offset
|
* @param offset
|
||||||
* @return
|
* @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),
|
Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F),
|
||||||
offset);
|
offset);
|
||||||
RayTraceResult result = raytraceTowards(rotation);
|
RayTraceResult result = raytraceTowards(rotation);
|
||||||
@ -88,7 +88,7 @@ public final class LookBehaviorUtils implements Helper{
|
|||||||
* @param pos
|
* @param pos
|
||||||
* @return
|
* @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),
|
Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F),
|
||||||
Utils.calcCenterFromCoords(pos, mc.world));
|
Utils.calcCenterFromCoords(pos, mc.world));
|
||||||
RayTraceResult result = raytraceTowards(rotation);
|
RayTraceResult result = raytraceTowards(rotation);
|
||||||
|
Loading…
Reference in New Issue
Block a user