move all checks from BlockStateInterface to MovementHelper

This commit is contained in:
Leijurv
2018-11-01 15:36:32 -07:00
parent 88e3bcdf63
commit b65a199e54
10 changed files with 69 additions and 71 deletions
@@ -116,7 +116,7 @@ public abstract class Movement implements IMovement, Helper, MovementHelper {
public MovementStatus update() {
player().capabilities.isFlying = false;
MovementState latestState = updateState(currentState);
if (BlockStateInterface.isLiquid(playerFeet())) {
if (MovementHelper.isLiquid(playerFeet())) {
latestState.setInput(Input.JUMP, true);
}
if (player().isEntityInsideOpaqueBlock()) {