From 8c7d0a98af6f5b559edd920373b09e64e0a5ed91 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 5 Dec 2021 23:09:08 -0800 Subject: [PATCH] sync _fakeDebrisBodies as well, why not --- QSB/TornadoSync/TornadoManager.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/QSB/TornadoSync/TornadoManager.cs b/QSB/TornadoSync/TornadoManager.cs index 65ee69ea..fc620e54 100644 --- a/QSB/TornadoSync/TornadoManager.cs +++ b/QSB/TornadoSync/TornadoManager.cs @@ -15,14 +15,22 @@ namespace QSB.TornadoSync QSBWorldSync.GetWorldObjects().ForEach(tornado => QSBEventManager.FireEvent(EventNames.QSBTornadoFormState, tornado)); + var gdBody = Locator._giantsDeep.GetOWRigidbody(); // cannon var cannon = Locator._orbitalProbeCannon.GetRequiredComponent(); - var gdBody = Locator._giantsDeep.GetOWRigidbody(); QSBEventManager.FireEvent(EventNames.QSBBodyResync, cannon.GetAttachedOWRigidbody(), gdBody); - foreach (var proxy in cannon._realDebrisSectorProxies) + foreach (var fake in cannon._fakeDebrisBodies) + { + if (fake) + { + QSBEventManager.FireEvent(EventNames.QSBBodyResync, + fake.GetAttachedOWRigidbody(), gdBody); + } + } + foreach (var real in cannon._realDebrisSectorProxies) { QSBEventManager.FireEvent(EventNames.QSBBodyResync, - proxy.transform.root.GetAttachedOWRigidbody(), gdBody); + real.transform.root.GetAttachedOWRigidbody(), gdBody); } QSBEventManager.FireEvent(EventNames.QSBBodyResync, cannon._probeBody, gdBody);