Buggy code:
public class OverworldSystem extends RenderableSpacePartitioningGrid { private SkySystem skySystem ; private InterpolatingAltitudeMap altitudeMap ; private Color fogColor = Color . black ; private final List < DEFObject > defList = new ArrayList < DEFObject > ( ) ; private RenderableSpacePartitioningGrid terrainMirror = new RenderableSpacePartitioningGrid ( this ) { } ; private boolean chamberMode = false ; private boolean tunnelMode = false ; private final TR tr ; private final LoadingProgressReporter terrainReporter ; private final LoadingProgressReporter cloudReporter ; private final LoadingProgressReporter objectReporter ; private ObjectSystem objectSystem ; private TerrainSystem terrainSystem ; public OverworldSystem ( World w , final LoadingProgressReporter progressReporter ) { } public void loadLevel ( final LVLFile lvl , final TDFFile tdf ) { try { final World w = tr . getWorld ( ) ; Color [ ] globalPalette = tr . getResourceManager ( ) . getPalette ( lvl . getGlobalPaletteFile ( ) ) ; TextureDescription [ ] texturePalette = tr . getResourceManager ( ) . getTextures ( lvl . getLevelTextureListFile ( ) , new ColorPaletteVectorList ( globalPalette ) , false ) ; System . out . println ( "Loading<seq2seq4repair_space>height<seq2seq4repair_space>map..." ) ; altitudeMap = new InterpolatingAltitudeMap ( tr . getResourceManager ( ) . getRAWAltitude ( lvl . getHeightMapOrTunnelFile ( ) ) ) ; System . out . println ( "...<seq2seq4repair_space>Done" ) ; final TextureMesh textureMesh = tr . getResourceManager ( ) . getTerrainTextureMesh ( lvl . getTexturePlacementFile ( ) , texturePalette ) ; System . out . println ( "Building<seq2seq4repair_space>terrain..." ) ; boolean flatShadedTerrain = lvl . getHeightMapOrTunnelFile ( ) . toUpperCase ( ) . contains ( "BORG" ) ; terrainSystem = new TerrainSystem ( altitudeMap , textureMesh , TR . mapSquareSize , this , terrainMirror , tr , tdf , flatShadedTerrain , terrainReporter ) ; System . out . println ( "...Done." ) ; System . out . println ( "Setting<seq2seq4repair_space>up<seq2seq4repair_space>sky..." ) ; <START_BUG> skySystem = new SkySystem ( this , tr , this , lvl , ( ( TR . mapSquareSize ) * 8 ) , ( ( int ) ( ( TR . mapWidth ) // ( ( TR . mapSquareSize ) * 8 ) ) ) , ( ( w . sizeY ) // 3.5 ) , cloudReporter ) ; <END_BUG> System . out . println ( "...Done." ) ; System . out . println ( "Setting<seq2seq4repair_space>up<seq2seq4repair_space>objects..." ) ; objectSystem = new ObjectSystem ( this , w , lvl , defList , null , Vector3D . ZERO , objectReporter ) ; objectSystem . activate ( ) ; terrainSystem . activate ( ) ; System . out . println ( "...Done." ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } @ Override public void activate ( ) { } public List < DEFObject > getDefList ( ) { } public SpacePartitioningGrid < PositionedRenderable > getTerrainMirror ( ) { } public void setChamberMode ( boolean mirrorTerrain ) { } private SkySystem getCloudSystem ( ) { } public boolean isChamberMode ( ) { } public boolean isTunnelMode ( ) { } public void setTunnelMode ( boolean tunnelMode ) { } public ObjectSystem getObjectSystem ( ) { } public InterpolatingAltitudeMap getAltitudeMap ( ) { } public SkySystem getSkySystem ( ) { } }

Fix:
skySystem = new SkySystem ( this , tr , this , lvl , ( ( TR . mapSquareSize ) * 8 ) , ( ( int ) ( ( TR . mapWidth ) // ( ( TR . mapSquareSize ) * 8 ) ) ) , ( ( w . sizeY ) // 4 ) , cloudReporter ) ;