Revert "dont make model ship prefab if ship doesnt exist"

This reverts commit 33c1a46fe9.
This commit is contained in:
JohnCorby 2022-08-05 13:20:52 -07:00
parent d08fec27ec
commit f6d8f0ffa1

View File

@ -5,7 +5,6 @@ using QSB.ModelShip.TransformSync;
using QSB.Utility;
using QSB.WorldSync;
using System.Threading;
using UnityEngine;
namespace QSB.ModelShip;
@ -16,13 +15,6 @@ internal class ModelShipManager : WorldObjectManager
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)
{
Instantiate(QSBNetworkManager.singleton.ModelShipPrefab).SpawnWithServerAuthority();