private void applyVerticalLimit ( ) { if ( mover . getY ( ) < limitBottom && limitBottom != Integer . MIN_VALUE ) { mover . teleportY ( limitBottom ) ; } else if ( mover . getY ( ) > limitTop && limitTop != Integer . MAX_VALUE ) { mover . teleportY ( limitTop ) ; } }
Fix location inside vertical limit .