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
|
return _playerSpawner
|
||||||
.GetValue<SpawnPoint[]>("_spawnList")
|
.GetValue<SpawnPoint[]>("_spawnList")
|
||||||
.FirstOrDefault(spawnPoint =>
|
.FirstOrDefault(spawnPoint => spawnPoint.GetSpawnLocation() == SpawnLocation.TimberHearth && spawnPoint.IsShipSpawn() == isShip);
|
||||||
spawnPoint.GetSpawnLocation() == SpawnLocation.TimberHearth && spawnPoint.IsShipSpawn() == isShip
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
using OWML.Common;
|
using UnityEngine;
|
||||||
using QSB.Utility;
|
|
||||||
using System;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace QSB.TransformSync
|
namespace QSB.TransformSync
|
||||||
{
|
{
|
||||||
@ -50,17 +47,13 @@ namespace QSB.TransformSync
|
|||||||
public void Remove()
|
public void Remove()
|
||||||
{
|
{
|
||||||
// do N O T destroy the parent - it completely breaks the ENTIRE GAME
|
// do N O T destroy the parent - it completely breaks the ENTIRE GAME
|
||||||
try
|
if (_canvasMarker.gameObject != null)
|
||||||
{
|
{
|
||||||
_canvasMarker.DestroyMarker();
|
_canvasMarker.DestroyMarker();
|
||||||
|
}
|
||||||
Destroy(_markerTarget.gameObject);
|
Destroy(_markerTarget.gameObject);
|
||||||
Destroy(this);
|
Destroy(this);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
DebugLog.ToConsole($"Warning - Failed to remove PlayerHUDMarker for {_player.Name} ({_player.NetId}) : {ex}", MessageType.Warning);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user