Skip to content

Commit

Permalink
fix: always initalize SynchronizationManager
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Sep 25, 2023
1 parent 32b76b4 commit e029b73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions JotunnLib/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ private void Awake()

Jotunn.Logger.Init();
ModCompatibility.Init();
((IManager)SynchronizationManager.Instance).Init();

// Flip the "modded" switch of Valheim
Game.isModded = true;
Expand Down
5 changes: 0 additions & 5 deletions JotunnLib/Managers/SynchronizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ public class SynchronizationManager : IManager
/// </summary>
private SynchronizationManager() { }

static SynchronizationManager()
{
((IManager)Instance).Init();
}

/// <summary>
/// Clientside indicator if the current player has admin status on
/// the current world, always true on local games
Expand Down

0 comments on commit e029b73

Please sign in to comment.