it returns so no else needed

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

View File

@ -75,7 +75,8 @@ public class MovementFall extends Movement {
if (!player().inventory.hasItemStack(STACK_BUCKET_WATER) || world().provider.isNether()) { // TODO check if water bucket is on hotbar or main inventory if (!player().inventory.hasItemStack(STACK_BUCKET_WATER) || world().provider.isNether()) { // TODO check if water bucket is on hotbar or main inventory
state.setStatus(MovementStatus.UNREACHABLE); state.setStatus(MovementStatus.UNREACHABLE);
return state; return state;
} else if (playerFeet().getY() - dest.getY() < mc.playerController.getBlockReachDistance()) { }
if (playerFeet().getY() - dest.getY() < mc.playerController.getBlockReachDistance()) {
player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_WATER); player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_WATER);
targetRotation = LookBehaviorUtils.reachable(dest.down()); targetRotation = LookBehaviorUtils.reachable(dest.down());
} }