Skip to content

Commit 16af6da

Browse files
committed
_isInitialized
1 parent 123db0b commit 16af6da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AquaMai.BepInEx/Plugin.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ public class Plugin : BaseUnityPlugin
1212

1313
public readonly static ManualLogSource LogSource = global::BepInEx.Logging.Logger.CreateLogSource(BuildInfo.Name);
1414

15+
private static bool _isInitialized = false;
16+
1517
public void Awake()
1618
{
19+
if (_isInitialized) return;
20+
_isInitialized = true;
21+
1722
var harmony = new HarmonyLib.Harmony(PluginName);
1823

1924
Common.AquaMai.Bootstrap(new BootstrapOptions

0 commit comments

Comments
 (0)