diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs index 23e7d857..3f537f97 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs @@ -4,5 +4,6 @@ namespace QSB.QuantumSync.WorldObjects { internal class QSBQuantumSocket : WorldObject { + public override bool ShouldDisplayLabel() => false; } } diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs index c05ae8ac..77c770a6 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs @@ -11,5 +11,7 @@ namespace QSB.QuantumSync.WorldObjects IsMeantToBeEnabled = visible; AttachedObject.SetVisible(visible); } + + public override bool ShouldDisplayLabel() => false; } } diff --git a/QSB/WorldSync/WorldObject.cs b/QSB/WorldSync/WorldObject.cs index d079c9ed..018ef50d 100644 --- a/QSB/WorldSync/WorldObject.cs +++ b/QSB/WorldSync/WorldObject.cs @@ -14,7 +14,7 @@ namespace QSB.WorldSync public virtual void Init() { } public virtual void OnRemoval() { } public MonoBehaviour ReturnObject() => AttachedObject; - public virtual bool ShouldDisplayLabel() => true; + public virtual bool ShouldDisplayLabel() => (bool)(AttachedObject?.gameObject.activeInHierarchy); public virtual string ReturnLabel() => LogName; /// indicates that this won't become ready immediately