--- a/net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java
+++ b/net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java
@@ -156,7 +156,10 @@
         PackRepository packrepository = ServerPacksSource.createPackRepository(p_249540_);
         Dynamic<?> dynamic = p_249540_.getDataTag();
         WorldLoader.PackConfig worldloader$packconfig = LevelStorageSource.getPackConfig(dynamic, packrepository, false);
-        return this.loadWorldDataBlocking(
+        @OnlyIn(Dist.CLIENT)
+        record Data(LevelSettings levelSettings, WorldOptions options, Registry<LevelStem> existingDimensions) {
+        }
+        return this.<Data, Pair<LevelSettings, WorldCreationContext>>loadWorldDataBlocking(
             worldloader$packconfig,
             p_307097_ -> {
                 Registry<LevelStem> registry = new MappedRegistry<>(Registries.LEVEL_STEM, Lifecycle.stable()).freeze();
@@ -187,11 +190,7 @@
             }
         );
 
-        @OnlyIn(Dist.CLIENT)
-        record Data(LevelSettings levelSettings, WorldOptions options, Registry<LevelStem> existingDimensions) {
         }
-
-    }
 
     private <D, R> R loadWorldDataBlocking(
         WorldLoader.PackConfig p_250997_, WorldLoader.WorldDataSupplier<D> p_251759_, WorldLoader.ResultFactory<D, R> p_249635_
