select the bucket

This commit is contained in:
Leijurv 2018-08-08 16:02:29 -07:00
parent 879e2135e6
commit 64ecbe20bf
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ public class MovementFall extends Movement {
if (playerFeet.equals(dest) && (player().posY - playerFeet.getY() < 0.01
|| BlockStateInterface.isWater(dest))) {
if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_AIR)) {
player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_AIR);
return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true);
}
return state.setStatus(MovementStatus.SUCCESS);