Skip to content

Commit

Permalink
fix: typo in netcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
sirskunkalot committed Apr 29, 2021
1 parent ca81865 commit 88afed4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion JotunnLib/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Jotunn
/// Main class implementing BaseUnityPlugin.
/// </summary>
[BepInPlugin(ModGuid, ModName, Version)]
[NetworkCompatibilty(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Minor)]
[NetworkCompatibility(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Minor)]
public class Main : BaseUnityPlugin
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion JotunnLib/Utils/ModCompatibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private static IEnumerable<Tuple<Color, string>> ServerVersionLowerMessage(Tuple
{
foreach (var plugin in BepInExUtils.GetDependentPlugins(true).OrderBy(x => x.Key))
{
var nca = plugin.Value.GetType().GetCustomAttributes(typeof(NetworkCompatibiltyAttribute), true).Cast<NetworkCompatibiltyAttribute>()
var nca = plugin.Value.GetType().GetCustomAttributes(typeof(NetworkCompatibilityAttribute), true).Cast<NetworkCompatibilityAttribute>()
.FirstOrDefault();
if (nca != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// </summary>
[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;
Expand Down
2 changes: 1 addition & 1 deletion TestMod/TestMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 88afed4

Please sign in to comment.