Added conditions for creating light sources in ChunkFactory.