don't pick up the water before landing

This commit is contained in:
Leijurv 2018-08-08 16:07:08 -07:00
parent 64ecbe20bf
commit 1f5874876b
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -91,7 +91,11 @@ public class MovementFall extends Movement {
|| BlockStateInterface.isWater(dest))) { || BlockStateInterface.isWater(dest))) {
if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_AIR)) { if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_AIR)) {
player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_AIR); player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_AIR);
if (player().motionY >= 0) {
return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true); return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true);
} else {
return state;
}
} }
return state.setStatus(MovementStatus.SUCCESS); return state.setStatus(MovementStatus.SUCCESS);
} }