Skip to content

Commit

Permalink
-Set several methods as static and private.
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonFire47 committed Sep 2, 2022
1 parent f1f9117 commit 2ebd25f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PulsarModLoader/MPModChecks/MPModCheckManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void RefreshData()

private bool ServerHasMPMods = false;

public MPModDataBlock[] getNetworkedPeerMods(PhotonPlayer Photonplayer)
public MPModDataBlock[] GetNetworkedPeerMods(PhotonPlayer Photonplayer)
{
return NetworkedPeersModLists[Photonplayer];
}
Expand Down Expand Up @@ -130,7 +130,7 @@ private MemoryStream GetModListForLobbyListing()
return dataStream;
}

public MPUserDataBlock GetModListFromLobbyListingData(MemoryStream memoryStream)
public static MPUserDataBlock GetModListFromLobbyListingData(MemoryStream memoryStream)
{
memoryStream.Position = 0;
MPUserDataBlock UserData = null;
Expand Down Expand Up @@ -161,7 +161,7 @@ public MPUserDataBlock GetModListFromLobbyListingData(MemoryStream memoryStream)
return UserData;
}

public static string GetModListAsString(MPModDataBlock[] ModDatas)
private static string GetModListAsString(MPModDataBlock[] ModDatas)
{
string ModList = string.Empty;
foreach (MPModDataBlock DataBlock in ModDatas)
Expand All @@ -171,7 +171,7 @@ public static string GetModListAsString(MPModDataBlock[] ModDatas)
return ModList;
}

private MPUserDataBlock GetHostModList(RoomInfo room)
private static MPUserDataBlock GetHostModList(RoomInfo room)
{
if (room.CustomProperties.ContainsKey("modList"))
{
Expand All @@ -180,7 +180,7 @@ private MPUserDataBlock GetHostModList(RoomInfo room)
return new MPUserDataBlock();
}

public void KickClient(PhotonPlayer client)
private static void KickClient(PhotonPlayer client)
{
if (SteamManager.Initialized && client.SteamID != CSteamID.Nil)
{
Expand Down

0 comments on commit 2ebd25f

Please sign in to comment.