mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
stop ship respawning when player dies
This commit is contained in:
parent
1fda70559f
commit
76f6bf232f
@ -1,5 +1,6 @@
|
||||
using OWML.Common;
|
||||
using OWML.Utils;
|
||||
using QSB.ShipSync.TransformSync;
|
||||
using QSB.Utility;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
@ -122,6 +123,12 @@ namespace QSB.DeathSync
|
||||
|
||||
public void ResetShip()
|
||||
{
|
||||
if (!ShipTransformSync.LocalInstance.HasAuthority)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - Tried to reset ship when not in control!", MessageType.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_shipSpawnPoint == null)
|
||||
{
|
||||
DebugLog.ToConsole("Warning - _shipSpawnPoint is null!", MessageType.Warning);
|
||||
|
Loading…
Reference in New Issue
Block a user