Skip to content

Commit

Permalink
Minor changes for compatability with new MPRequirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonFire47 committed Apr 5, 2023
1 parent 4886335 commit 6159078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PulsarModLoader/MPModChecks/MPModCheckManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private List<PulsarMod> GetMPModList()
{
if (mod.MPRequirements != (int)MPRequirement.HideFromServerList)
{
if (mod.MPRequirements >= (int)MPRequirement.Host && mod.MPRequirements > HighestLevelOfMPMods)
if (mod.MPRequirements == (int)MPRequirement.Host || mod.MPRequirements == (int)MPRequirement.All && mod.MPRequirements > HighestLevelOfMPMods)
{
HighestLevelOfMPMods = (mod.MPRequirements);
}
Expand Down Expand Up @@ -556,7 +556,7 @@ public bool HostOnClientJoined(PhotonPlayer Player)
}
if (!found) //if client mod not installed locally requires host to have installed.
{
if (ClientMods[b].MPRequirement >= MPRequirement.Host)
if (ClientMods[b].MPRequirement == MPRequirement.Host || ClientMods[b].MPRequirement == MPRequirement.All)
{
clientMPLimitedMods += $"\n{ClientMods[b].ModName}";
}
Expand Down

0 comments on commit 6159078

Please sign in to comment.