Correct errors after last commit.
Use world.getMaxHeight() in favour of a static integer value.