Source:
<code>public void onWorldAttachCapabilities(AttachCapabilitiesEvent<World> evt) { if (evt.getObject().isRemote) { return; } ICubicWorldServer world = (ICubicWorldServer) evt.getObject(); WorldSavedCubicChunksData savedData = (WorldSavedCubicChunksData) evt.getObject().getMapStorage().getOrLoadData(WorldSavedCubicChunksData.class, "cubicChunksData"); boolean forcedCubicChunks = ((ICubicWorldSettings)world.getWorldInfo()).isCubic(); if (!(evt.getObject().getWorldType() instanceof ICubicWorldType) && savedData == null && !forcedCubicChunks) { return; } if (shouldSkipWorld((World) world)) { CubicChunks.LOGGER.info("Skipping world " + evt.getObject() + " with type " + evt.getObject().getWorldType() + " due to potential " + "compatibility issues"); return; } CubicChunks.LOGGER.info("Initializing world " + evt.getObject() + " with type " + evt.getObject().getWorldType()); IntRange generationRange = new IntRange(0, ((ICubicWorldProvider) world.getProvider()).getOriginalActualHeight()); WorldType type = evt.getObject().getWorldType(); if (type instanceof ICubicWorldType) { generationRange = ((ICubicWorldType) type).calculateGenerationHeightRange((WorldServer) world); } if (savedData == null) { <START> savedData = new WorldSavedCubicChunksData("heightBounds"); <END> } int minHeight = savedData.minHeight; int maxHeight = savedData.maxHeight; world.initCubicWorldServer(new IntRange(minHeight, maxHeight), generationRange); savedData.markDirty(); evt.getObject().getMapStorage().setData("heightBounds", savedData); evt.getObject().getMapStorage().saveAllData(); }</code><technical_language>new WorldSavedCubicChunksData("cubicChunksData");</technical_language>

Target:
public void onWorldAttachCapabilities(AttachCapabilitiesEvent<World> evt) { if (evt.getObject().isRemote) { return; } ICubicWorldServer world = (ICubicWorldServer) evt.getObject(); WorldSavedCubicChunksData savedData = (WorldSavedCubicChunksData) evt.getObject().getMapStorage().getOrLoadData(WorldSavedCubicChunksData.class, "cubicChunksData"); boolean forcedCubicChunks = ((ICubicWorldSettings)world.getWorldInfo()).isCubic(); if (!(evt.getObject().getWorldType() instanceof ICubicWorldType) && savedData == null && !forcedCubicChunks) { return; } if (shouldSkipWorld((World) world)) { CubicChunks.LOGGER.info("Skipping world " + evt.getObject() + " with type " + evt.getObject().getWorldType() + " due to potential " + "compatibility issues"); return; } CubicChunks.LOGGER.info("Initializing world " + evt.getObject() + " with type " + evt.getObject().getWorldType()); IntRange generationRange = new IntRange(0, ((ICubicWorldProvider) world.getProvider()).getOriginalActualHeight()); WorldType type = evt.getObject().getWorldType(); if (type instanceof ICubicWorldType) { generationRange = ((ICubicWorldType) type).calculateGenerationHeightRange((WorldServer) world); } if (savedData == null) { savedData = new WorldSavedCubicChunksData("cubicChunksData"); } int minHeight = savedData.minHeight; int maxHeight = savedData.maxHeight; world.initCubicWorldServer(new IntRange(minHeight, maxHeight), generationRange); savedData.markDirty(); evt.getObject().getMapStorage().setData("cubicChunksData", savedData); evt.getObject().getMapStorage().saveAllData(); }