using System.Reflection; using NitroxClient.GameLogic.PlayerLogic; using NitroxModel.Helper; using UnityEngine; namespace NitroxPatcher.Patches.Dynamic; /// /// Prevents remote players from being frozen by remote stasis fields /// public sealed partial class StasisSphere_Freeze_Patch : NitroxPatch, IDynamicPatch { private static readonly MethodInfo TARGET_METHOD = Reflect.Method((StasisSphere t) => t.Freeze(default, ref Reflect.Ref.Field)); public static bool Prefix(Collider other, ref bool __result) { return !other.GetComponentInParent(true); } }