Skip to content

Commit

Permalink
Make ModInitializationBatches actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
Popax21 committed Nov 7, 2023
1 parent 9c20d90 commit ee238b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Celeste.Mod.mm/Mod/Everest/Everest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,11 @@ internal class ModInitializationBatch : IDisposable {
private Queue<EverestModule> lateModuleInitQueue = null;

public ModInitializationBatch() {
if (_ModInitBatch == null)
if (_ModInitBatch != null)
return;

IsActive = true;
_ModInitBatch = this;
}

public void Dispose() {
Expand Down

0 comments on commit ee238b5

Please sign in to comment.