Prevent damaging falls in the Nether

This commit is contained in:
Howard Stark 2018-08-08 12:33:44 -07:00
parent db01331560
commit 174f84da73
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3

View File

@ -67,7 +67,7 @@ public class MovementFall extends Movement {
case RUNNING:
BlockPos playerFeet = playerFeet();
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))) || world().provider.isNether()) {
state.setStatus(MovementStatus.UNREACHABLE);
return state;
}