mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-27 00:40:12 +00:00
marker bug
This commit is contained in:
parent
e0c1126f2a
commit
d22fb21479
@ -132,9 +132,7 @@ namespace QSB.DeathSync
|
||||
{
|
||||
return _playerSpawner
|
||||
.GetValue<SpawnPoint[]>("_spawnList")
|
||||
.FirstOrDefault(spawnPoint =>
|
||||
spawnPoint.GetSpawnLocation() == SpawnLocation.TimberHearth && spawnPoint.IsShipSpawn() == isShip
|
||||
);
|
||||
.FirstOrDefault(spawnPoint => spawnPoint.GetSpawnLocation() == SpawnLocation.TimberHearth && spawnPoint.IsShipSpawn() == isShip);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,4 @@
|
||||
using OWML.Common;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.TransformSync
|
||||
{
|
||||
@ -50,17 +47,13 @@ namespace QSB.TransformSync
|
||||
public void Remove()
|
||||
{
|
||||
// do N O T destroy the parent - it completely breaks the ENTIRE GAME
|
||||
try
|
||||
if (_canvasMarker.gameObject != null)
|
||||
{
|
||||
_canvasMarker.DestroyMarker();
|
||||
Destroy(_markerTarget.gameObject);
|
||||
Destroy(this);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - Failed to remove PlayerHUDMarker for {_player.Name} ({_player.NetId}) : {ex}", MessageType.Warning);
|
||||
}
|
||||
|
||||
Destroy(_markerTarget.gameObject);
|
||||
Destroy(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user