mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-26 12:15:48 +00:00
dont need to worry about nh destroying stuff anymore, so stop checking for that
This commit is contained in:
parent
1b0f2cec97
commit
391b9ade56
@ -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();
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user