dont need to worry about nh destroying stuff anymore, so stop checking for that

This commit is contained in:
JohnCorby 2024-03-10 17:31:48 -07:00
parent 1b0f2cec97
commit 391b9ade56
3 changed files with 4 additions and 22 deletions

View File

@ -37,13 +37,6 @@ public class ModelShipManager : WorldObjectManager
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct) public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{ {
// NH can remove this
var modelShip = QSBWorldSync.GetUnityObject<RemoteFlightConsole>()._modelShipBody;
if (!modelShip)
{
return;
}
if (QSBCore.IsHost) if (QSBCore.IsHost)
{ {
Instantiate(QSBNetworkManager.singleton.ModelShipPrefab).SpawnWithServerOwnership(); Instantiate(QSBNetworkManager.singleton.ModelShipPrefab).SpawnWithServerOwnership();

View File

@ -91,16 +91,11 @@ public class QSBSectorManager : WorldObjectManager
// time loop spinning ring // time loop spinning ring
{ {
// NH can remove this
var TimeLoopRing_Body = GameObject.Find("TimeLoopRing_Body"); var TimeLoopRing_Body = GameObject.Find("TimeLoopRing_Body");
var Sector_TimeLoopInterior = GameObject.Find("Sector_TimeLoopInterior").GetComponent<Sector>();
if (TimeLoopRing_Body) // use the same trigger as the parent sector
{ FakeSector.Create(TimeLoopRing_Body, Sector_TimeLoopInterior,
var Sector_TimeLoopInterior = GameObject.Find("Sector_TimeLoopInterior").GetComponent<Sector>(); x => x._triggerRoot = Sector_TimeLoopInterior._triggerRoot);
// use the same trigger as the parent sector
FakeSector.Create(TimeLoopRing_Body, Sector_TimeLoopInterior,
x => x._triggerRoot = Sector_TimeLoopInterior._triggerRoot);
}
} }
// TH elevators // TH elevators

View File

@ -23,12 +23,6 @@ public class OccasionalManager : WorldObjectManager
foreach (var proxy in cannon._realDebrisSectorProxies) foreach (var proxy in cannon._realDebrisSectorProxies)
{ {
// NH can remove these
if (!proxy)
{
continue;
}
SpawnOccasional(proxy.transform.root.GetAttachedOWRigidbody(), gdBody); SpawnOccasional(proxy.transform.root.GetAttachedOWRigidbody(), gdBody);
} }