Skip to content

Commit 21143ec

Browse files
fix
Putting back the default world initialization.
1 parent 90559b3 commit 21143ec

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,8 @@ public bool StartServer()
13991399
ShutdownInternal();
14001400
return false;
14011401
}
1402-
NetCodeConfig.Global.HostWorldModeSelection = NetCodeConfig.HostWorldMode.SingleWorld;
1402+
1403+
DefaultWorldInitialization.Initialize("Default World", false);
14031404
StartCoroutine(WaitForHybridPrefabRegistration(StartType.Server));
14041405
return true;
14051406
}
@@ -1473,7 +1474,7 @@ public bool StartClient()
14731474
ShutdownInternal();
14741475
return false;
14751476
}
1476-
1477+
DefaultWorldInitialization.Initialize("Default World", false);
14771478
StartCoroutine(WaitForHybridPrefabRegistration(StartType.Client));
14781479
// TODO-UNIFIED: Need a way to signal everything completed.
14791480
return true;
@@ -1547,6 +1548,7 @@ public bool StartHost()
15471548
ShutdownInternal();
15481549
return false;
15491550
}
1551+
DefaultWorldInitialization.Initialize("Default World", false);
15501552
StartCoroutine(WaitForHybridPrefabRegistration(StartType.Host));
15511553
// TODO-UNIFIED: Need a way to signal everything completed.
15521554
return true;

0 commit comments

Comments
 (0)