Skip to content

Commit

Permalink
Changed MPRequirements to grab from MPFunctionality if set to host or…
Browse files Browse the repository at this point in the history
… all, preserving MPRequirements for old mods.
  • Loading branch information
Nagord committed Sep 5, 2022
1 parent 7337dc5 commit b5e4e69
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion PulsarModLoader/PulsarMod.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using HarmonyLib;
using PulsarModLoader.MPModChecks;
using System;
using System.Diagnostics;
using System.Reflection;
Expand Down Expand Up @@ -111,7 +112,14 @@ public virtual int MPRequirements
{
get
{
return (int)MPModChecks.MPRequirement.None;
if (MPFunctionality >= (int)MPRequirement.Host)
{
return MPFunctionality;
}
else
{
return (int)MPRequirement.None;
}
}
}

Expand Down

0 comments on commit b5e4e69

Please sign in to comment.