pool sync: sort deterministic. whoops

This commit is contained in:
JohnCorby 2022-02-21 13:02:58 -08:00
parent 217fd1a457
commit 148d83780f

View File

@ -1,4 +1,5 @@
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using QSB.Utility;
using QSB.WorldSync; using QSB.WorldSync;
using System.Threading; using System.Threading;
@ -10,17 +11,17 @@ namespace QSB.PoolSync
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct) public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{ {
foreach (var streaming in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraStreaming>()) foreach (var streaming in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraStreaming>().SortDeterministic())
{ {
streaming.gameObject.AddComponent<CustomNomaiRemoteCameraStreaming>(); streaming.gameObject.AddComponent<CustomNomaiRemoteCameraStreaming>();
} }
foreach (var camera in QSBWorldSync.GetUnityObjects<NomaiRemoteCamera>()) foreach (var camera in QSBWorldSync.GetUnityObjects<NomaiRemoteCamera>().SortDeterministic())
{ {
camera.gameObject.AddComponent<CustomNomaiRemoteCamera>(); camera.gameObject.AddComponent<CustomNomaiRemoteCamera>();
} }
foreach (var platform in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraPlatform>()) foreach (var platform in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraPlatform>().SortDeterministic())
{ {
platform.gameObject.AddComponent<CustomNomaiRemoteCameraPlatform>(); platform.gameObject.AddComponent<CustomNomaiRemoteCameraPlatform>();
} }