From b2925694399230452d25f6c3d60520eee556d22e Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Tue, 4 Oct 2022 23:45:20 -0700 Subject: [PATCH] put a debug log here for good measure --- QSB/Player/Patches/VolumePatches.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/QSB/Player/Patches/VolumePatches.cs b/QSB/Player/Patches/VolumePatches.cs index 7d2bdd48..01129840 100644 --- a/QSB/Player/Patches/VolumePatches.cs +++ b/QSB/Player/Patches/VolumePatches.cs @@ -1,5 +1,6 @@ using HarmonyLib; using QSB.Patches; +using QSB.Utility; using UnityEngine; namespace QSB.Player.Patches; @@ -45,10 +46,13 @@ internal class VolumePatches : QSBPatch [HarmonyPatch(typeof(ElectricityVolume), nameof(ElectricityVolume.OnEffectVolumeEnter))] [HarmonyPatch(typeof(DreamWarpVolume), nameof(DreamWarpVolume.OnEnterTriggerVolume))] [HarmonyPatch(typeof(NomaiWarpPlatform), nameof(NomaiWarpPlatform.OnEntry))] - public static bool PreventRemotePlayerEnter(GameObject hitObj) => + public static bool PreventRemotePlayerEnter(object __instance, GameObject hitObj) + { + DebugLog.DebugWrite($"{__instance} funny prevent enter {hitObj}"); // this is a dogshit fix to a bug where this would ApplyShock to remote players, // which would actually apply the shock affects to the entire planet / sector // // TODO: also do this with remote probes - hitObj.name != "REMOTE_PlayerDetector"; + return hitObj.name != "REMOTE_PlayerDetector"; + } }