Due to update 2.4.3, some mods may no longer function. FixedConfig may be necessary.
Decompiled source of NoMapBounds v1.0.0
NoMapBounds.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")] [assembly: AssemblyCompany("NoMapBounds")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("Removes map bounds, so you dont die.")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+8731a9103abb608ad09809c7fee748d776b51af3")] [assembly: AssemblyProduct("NoMapBounds")] [assembly: AssemblyTitle("NoMapBounds")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace NoMapBounds { [BepInPlugin("com.almafa64.NoMapBounds", "NoMapBounds", "1.0.0")] [BepInProcess("BoplBattle.exe")] public class Plugin : BaseUnityPlugin { internal static Harmony harmony; internal static ManualLogSource logger; internal static ConfigFile config; private void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown harmony = new Harmony(((BaseUnityPlugin)this).Info.Metadata.GUID); logger = ((BaseUnityPlugin)this).Logger; config = ((BaseUnityPlugin)this).Config; harmony.Patch((MethodBase)AccessTools.Method(typeof(DestroyIfOutsideSceneBounds), "UpdateSim", (Type[])null, (Type[])null), new HarmonyMethod(typeof(Patches), "UpdateSim_Prefix", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); } } internal class Patches { private static readonly FieldInfo fixTransField = typeof(DestroyIfOutsideSceneBounds).GetField("fixTrans", AccessTools.all); internal static bool UpdateSim_Prefix(DestroyIfOutsideSceneBounds __instance) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) object? value = fixTransField.GetValue(__instance); return ((FixTransform)((value is FixTransform) ? value : null)).position.y <= SceneBounds.WaterHeight; } } public static class PluginInfo { public const string PLUGIN_GUID = "NoMapBounds"; public const string PLUGIN_NAME = "NoMapBounds"; public const string PLUGIN_VERSION = "1.0.0"; } }