mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +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.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();
|
||||
|
Loading…
Reference in New Issue
Block a user