From 88afed49e32e131efc30eec5d72487fca2b11d6b Mon Sep 17 00:00:00 2001 From: Jules Date: Thu, 29 Apr 2021 04:21:59 +0200 Subject: [PATCH] fix: typo in netcompat --- JotunnLib/Main.cs | 2 +- JotunnLib/Utils/ModCompatibility.cs | 2 +- ...patibiltyAttribute.cs => NetworkCompatibilityAttribute.cs} | 4 ++-- TestMod/TestMod.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename JotunnLib/Utils/{NetworkCompatibiltyAttribute.cs => NetworkCompatibilityAttribute.cs} (91%) diff --git a/JotunnLib/Main.cs b/JotunnLib/Main.cs index 683666bfb..7e9eedbd0 100644 --- a/JotunnLib/Main.cs +++ b/JotunnLib/Main.cs @@ -15,7 +15,7 @@ namespace Jotunn /// Main class implementing BaseUnityPlugin. /// [BepInPlugin(ModGuid, ModName, Version)] - [NetworkCompatibilty(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Minor)] + [NetworkCompatibility(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Minor)] public class Main : BaseUnityPlugin { /// diff --git a/JotunnLib/Utils/ModCompatibility.cs b/JotunnLib/Utils/ModCompatibility.cs index 830320284..8834bbbe8 100644 --- a/JotunnLib/Utils/ModCompatibility.cs +++ b/JotunnLib/Utils/ModCompatibility.cs @@ -316,7 +316,7 @@ private static IEnumerable> ServerVersionLowerMessage(Tuple { foreach (var plugin in BepInExUtils.GetDependentPlugins(true).OrderBy(x => x.Key)) { - var nca = plugin.Value.GetType().GetCustomAttributes(typeof(NetworkCompatibiltyAttribute), true).Cast() + var nca = plugin.Value.GetType().GetCustomAttributes(typeof(NetworkCompatibilityAttribute), true).Cast() .FirstOrDefault(); if (nca != null) { diff --git a/JotunnLib/Utils/NetworkCompatibiltyAttribute.cs b/JotunnLib/Utils/NetworkCompatibilityAttribute.cs similarity index 91% rename from JotunnLib/Utils/NetworkCompatibiltyAttribute.cs rename to JotunnLib/Utils/NetworkCompatibilityAttribute.cs index 243591431..7a6897d6b 100644 --- a/JotunnLib/Utils/NetworkCompatibiltyAttribute.cs +++ b/JotunnLib/Utils/NetworkCompatibilityAttribute.cs @@ -34,13 +34,13 @@ public enum VersionStrictness : int /// If your mod is just GUI changes (for example bigger inventory, additional equip slots) there is no need to set this attribute /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly)] - public class NetworkCompatibiltyAttribute : Attribute + public class NetworkCompatibilityAttribute: Attribute { public CompatibilityLevel EnforceModOnClients { get; set; } public VersionStrictness EnforceSameVersion { get; set; } - public NetworkCompatibiltyAttribute(CompatibilityLevel enforceMod, VersionStrictness enforceVersion) + public NetworkCompatibilityAttribute(CompatibilityLevel enforceMod, VersionStrictness enforceVersion) { EnforceModOnClients = enforceMod; EnforceSameVersion = enforceVersion; diff --git a/TestMod/TestMod.cs b/TestMod/TestMod.cs index e869c8f14..6992e8010 100644 --- a/TestMod/TestMod.cs +++ b/TestMod/TestMod.cs @@ -16,7 +16,7 @@ namespace TestMod { [BepInPlugin(ModGUID, ModName, ModVersion)] [BepInDependency(Main.ModGuid)] - [NetworkCompatibilty(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Patch)] + [NetworkCompatibility(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Patch)] internal class TestMod : BaseUnityPlugin { private const string ModGUID = "com.jotunn.testmod";