look at same coord as later location check

This commit is contained in:
Leijurv 2018-08-08 16:01:35 -07:00
parent 0bf9567833
commit 879e2135e6
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -85,7 +85,7 @@ public class MovementFall extends Movement {
state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true)
.setTarget(new MovementTarget(targetRotation.get()));
} else {
state.setTarget(new MovementTarget(Utils.calcRotationFromVec3d(playerHead(), Utils.calcCenterFromCoords(dest, world()))));
state.setTarget(new MovementTarget(Utils.calcRotationFromVec3d(playerHead(), Utils.getBlockPosCenter(dest))));
}
if (playerFeet.equals(dest) && (player().posY - playerFeet.getY() < 0.01
|| BlockStateInterface.isWater(dest))) {