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

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);