Skip to content

Commit

Permalink
Accidently disabled cloud saving on shared save. Attempted share uplo…
Browse files Browse the repository at this point in the history
…ad will now properly result in cloudsaving instead
  • Loading branch information
v0idp committed Feb 28, 2024
1 parent c0927e0 commit 37ab860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CSPL/src/Patches/SessionsManagerPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public static class SessionsManagerPatch
[HarmonyPatch(typeof(SessionsManager), nameof(SessionsManager.SaveSessionAs))]
public static void SaveSessionAs_Prefix(SessionsManager __instance, ref SessionSaveData sessionSaveData)
{
if (sessionSaveData.IsShared || sessionSaveData.IsCloud)
if (sessionSaveData.IsShared)
{
sessionSaveData.IsShared = false;
sessionSaveData.IsCloud = false;
sessionSaveData.IsCloud = true;
CSPLPlugin.Log.LogInfo("Preventing session from being shared to community...");
CSPLPlugin.Log.LogInfo("Session will be uploaded to cloud instead!");
}
Expand Down

0 comments on commit 37ab860

Please sign in to comment.