maybe fix

This commit is contained in:
Leijurv 2018-08-07 08:13:51 -07:00
parent a2b867bf39
commit 732ab5273c
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -69,6 +69,7 @@ public class MovementFall extends Movement {
if (!BlockStateInterface.isWater(dest) && src.getY() - dest.getY() > 3) { if (!BlockStateInterface.isWater(dest) && src.getY() - dest.getY() > 3) {
if (!player().inventory.hasItemStack(new ItemStack(new ItemBucket(Blocks.WATER)))) { if (!player().inventory.hasItemStack(new ItemStack(new ItemBucket(Blocks.WATER)))) {
state.setStatus(MovementStatus.UNREACHABLE); state.setStatus(MovementStatus.UNREACHABLE);
return state;
} }
player().inventory.currentItem = player().inventory.getSlotFor(new ItemStack(new ItemBucket(Blocks.WATER))); player().inventory.currentItem = player().inventory.getSlotFor(new ItemStack(new ItemBucket(Blocks.WATER)));
LookBehaviorUtils.reachable(dest).ifPresent(rotation -> LookBehaviorUtils.reachable(dest).ifPresent(rotation ->