}
// save the world config back to the world generator
worldGenerator.setConfigurator(ocf.get());
}
} else {
EntityRef worldEntity = entityManager.create();
worldEntity.addComponent(new WorldComponent());
worldRenderer.getChunkProvider().setWorldEntity(worldEntity);
// transfer all world generation parameters from Config to WorldEntity
WorldGenerator worldGenerator = CoreRegistry.get(WorldGenerator.class);