From 2ebd25f2dbd860c8228e4cce568170d86da10bde Mon Sep 17 00:00:00 2001 From: DragonFire47 <46509577+DragonFire47@users.noreply.github.com> Date: Thu, 1 Sep 2022 22:05:29 -0700 Subject: [PATCH] -Set several methods as static and private. --- PulsarModLoader/MPModChecks/MPModCheckManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PulsarModLoader/MPModChecks/MPModCheckManager.cs b/PulsarModLoader/MPModChecks/MPModCheckManager.cs index 6649ced..152aaad 100644 --- a/PulsarModLoader/MPModChecks/MPModCheckManager.cs +++ b/PulsarModLoader/MPModChecks/MPModCheckManager.cs @@ -47,7 +47,7 @@ private void UpdateLobbyModList() //Update Photon Lobby Listing with mod list private bool ServerHasMPMods = false; - public MPModDataBlock[] getNetworkedPeerMods(PhotonPlayer Photonplayer) + public MPModDataBlock[] GetNetworkedPeerMods(PhotonPlayer Photonplayer) { return NetworkedPeersModLists[Photonplayer]; } @@ -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; @@ -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) @@ -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")) { @@ -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) {