/**
* Sent as the initial login process if first is true, otherwise handled as a normal world change.
*/
private void worldChanged(World world) {
// TODO: this needs to be re-written to either be only about world-changes, or to handle first connection completely in the if statement.
WorldConfigurationNode node = VanillaConfiguration.WORLDS.get(world);
maxY = node.MAX_Y.getInt() & (~Chunk.BLOCKS.MASK);
minY = node.MIN_Y.getInt() & (~Chunk.BLOCKS.MASK);
stepY = node.STEP_Y.getInt() & (~Chunk.BLOCKS.MASK);
lastY = Integer.MAX_VALUE;