don't pick up the water before landing
This commit is contained in:
parent
64ecbe20bf
commit
1f5874876b
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user