Skip to content

Commit 7cf2405

Browse files
committed
remove patch that is now in vanillafix
1 parent b660379 commit 7cf2405

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

QSB/Tools/ProbeTool/Patches/ProbeToolPatches.cs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,6 @@ internal class ProbeToolPatches : QSBPatch
1111
{
1212
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
1313

14-
/*
15-
* This patch is just to avoid error spam when testing probe destruction in SolarSystem
16-
*/
17-
18-
[HarmonyPrefix]
19-
[HarmonyPatch(typeof(NomaiWarpStreaming), nameof(NomaiWarpStreaming.FixedUpdate))]
20-
public static bool FixedUpdateOverride(NomaiWarpStreaming __instance)
21-
{
22-
if (__instance._warpTransmitter != null)
23-
{
24-
var ableToBeWarped = __instance._warpTransmitter.GetViewAngleToTarget() < __instance._streamingAngle;
25-
var probeAbove = __instance._probe != null && __instance._probe.IsLaunched() && (!__instance._probe.IsAnchored() || __instance._warpTransmitter.IsProbeOnPlatform());
26-
27-
var shouldBeLoadingRequiredAssets = ableToBeWarped && (__instance._playerInVolume || (__instance._probeInVolume && probeAbove));
28-
var shouldBeLoadingGeneralAssets = ableToBeWarped && __instance._warpTransmitter.IsPlayerOnPlatform();
29-
__instance.UpdatePreloadingState(shouldBeLoadingRequiredAssets, shouldBeLoadingGeneralAssets);
30-
}
31-
32-
if (__instance._warpReceiver != null)
33-
{
34-
var ableToBeWarped = __instance._warpReceiver.IsReturnWarpEnabled() || __instance._warpReceiver.IsBlackHoleOpen();
35-
var probeAbove = __instance._probe != null && __instance._probe.IsLaunched() && (!__instance._probe.IsAnchored() || __instance._warpReceiver.IsProbeOnPlatform());
36-
37-
var shouldBeLoadingRequiredAssets = ableToBeWarped && (__instance._playerInVolume || (__instance._probeInVolume && probeAbove));
38-
var shouldBeLoadingGeneralAssets = ableToBeWarped && __instance._playerInVolume;
39-
__instance.UpdatePreloadingState(shouldBeLoadingRequiredAssets, shouldBeLoadingGeneralAssets);
40-
}
41-
42-
return false;
43-
}
44-
4514
[HarmonyPrefix]
4615
[HarmonyPatch(typeof(ProbeCamera), nameof(ProbeCamera.RotateHorizontal))]
4716
public static bool RotateHorizontal(ProbeCamera __instance, float degrees)

0 commit comments

Comments
 (0)