mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 03:40:54 +00:00
QSBEclipseCodeController: null check attached object when destroying
This commit is contained in:
parent
1e545fe049
commit
2c8f813f3d
@ -24,7 +24,10 @@ public class QSBEclipseCodeController : WorldObject<EclipseCodeController4>
|
|||||||
|
|
||||||
public override void OnRemoval()
|
public override void OnRemoval()
|
||||||
{
|
{
|
||||||
UnityEngine.Object.Destroy(AttachedObject.gameObject.GetComponent<CodeControllerRemoteUpdater>());
|
if (AttachedObject)
|
||||||
|
{
|
||||||
|
UnityEngine.Object.Destroy(AttachedObject.gameObject.GetComponent<CodeControllerRemoteUpdater>());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetUser(uint user)
|
public void SetUser(uint user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user