diff --git a/NewHorizons/Components/Volumes/StreamingWarpVolume.cs b/NewHorizons/Components/Volumes/StreamingWarpVolume.cs index cfce0c08..163a9e78 100644 --- a/NewHorizons/Components/Volumes/StreamingWarpVolume.cs +++ b/NewHorizons/Components/Volumes/StreamingWarpVolume.cs @@ -31,14 +31,14 @@ namespace NewHorizons.Components.Volumes if (_probe == null) { NHLogger.LogError($"How is your scout probe null? Destroying {nameof(StreamingWarpVolume)}"); - Component.DestroyImmediate(this); + GameObject.DestroyImmediate(gameObject); } } if (streamingGroup == null) { NHLogger.LogError($"{nameof(StreamingWarpVolume)} has no streaming group. Destroying {nameof(StreamingWarpVolume)}"); - Component.DestroyImmediate(this); + GameObject.DestroyImmediate(gameObject); } bool probeActive = _probe.IsLaunched() && !_probe.IsAnchored();