Correctly follow height limits for caves