fix descend and fall onto lilypad

This commit is contained in:
leijurv 2018-08-20 07:33:39 -07:00
parent 1024a1df2d
commit 77e97b4285
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public class MovementDescend extends Movement {
}
BlockPos playerFeet = playerFeet();
if (playerFeet.equals(dest)) {
if (BlockStateInterface.isLiquid(dest) || player().posY - playerFeet.getY() < 0.01) {
if (BlockStateInterface.isLiquid(dest) || player().posY - playerFeet.getY() < 0.094) {
// Wait until we're actually on the ground before saying we're done because sometimes we continue to fall if the next action starts immediately
state.setStatus(MovementStatus.SUCCESS);
return state;

View File

@ -105,7 +105,7 @@ public class MovementFall extends Movement {
} else {
state.setTarget(new MovementTarget(Utils.calcRotationFromVec3d(playerHead(), Utils.getBlockPosCenter(dest))));
}
if (playerFeet.equals(dest) && (player().posY - playerFeet.getY() < 0.01
if (playerFeet.equals(dest) && (player().posY - playerFeet.getY() < 0.094
|| BlockStateInterface.isWater(dest))) {
if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_EMPTY)) {
player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_EMPTY);