tighten fall column

This commit is contained in:
leijurv 2018-10-09 11:15:27 -07:00 committed by Leijurv
parent 5da9347e2c
commit 738ce25ff0
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -106,7 +106,7 @@ public class MovementFall extends Movement {
} }
} }
Vec3d destCenter = Utils.getBlockPosCenter(dest); // we are moving to the 0.5 center not the edge (like if we were falling on a ladder) Vec3d destCenter = Utils.getBlockPosCenter(dest); // we are moving to the 0.5 center not the edge (like if we were falling on a ladder)
if (Math.abs(player().posX - destCenter.x) > 0.2 || Math.abs(player().posZ - destCenter.z) > 0.2) { if (Math.abs(player().posX - destCenter.x) > 0.15 || Math.abs(player().posZ - destCenter.z) > 0.15) {
state.setInput(InputOverrideHandler.Input.MOVE_FORWARD, true); state.setInput(InputOverrideHandler.Input.MOVE_FORWARD, true);
} }
return state; return state;