mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
Revert "dont make model ship prefab if ship doesnt exist"
This reverts commit 33c1a46fe9
.
This commit is contained in:
parent
d08fec27ec
commit
f6d8f0ffa1
@ -5,7 +5,6 @@ using QSB.ModelShip.TransformSync;
|
|||||||
using QSB.Utility;
|
using QSB.Utility;
|
||||||
using QSB.WorldSync;
|
using QSB.WorldSync;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace QSB.ModelShip;
|
namespace QSB.ModelShip;
|
||||||
|
|
||||||
@ -16,13 +15,6 @@ internal class ModelShipManager : WorldObjectManager
|
|||||||
|
|
||||||
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
||||||
{
|
{
|
||||||
var remoteFlight = Resources.FindObjectsOfTypeAll<RemoteFlightConsole>();
|
|
||||||
if (remoteFlight == null)
|
|
||||||
{
|
|
||||||
DebugLog.ToConsole($"Error - Couldn't find model ship!", MessageType.Error);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (QSBCore.IsHost)
|
if (QSBCore.IsHost)
|
||||||
{
|
{
|
||||||
Instantiate(QSBNetworkManager.singleton.ModelShipPrefab).SpawnWithServerAuthority();
|
Instantiate(QSBNetworkManager.singleton.ModelShipPrefab).SpawnWithServerAuthority();
|
||||||
|
Loading…
Reference in New Issue
Block a user