Skip to content

Commit

Permalink
Closes #10167
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Feb 5, 2025
1 parent 2822124 commit 571b87a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/mindustry/game/EventType.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public static class CoreItemDeliverEvent{}
public static class BlockInfoEvent{}
/** Called *after* all content has been initialized. */
public static class ContentInitEvent{}
/** Called *after* all mod content has been loaded, but before it has been initialized. */
public static class ModContentLoadEvent{}
/** Called when the client game is first loaded. */
public static class ClientLoadEvent{}
/** Called after SoundControl registers its music. */
Expand Down
2 changes: 2 additions & 0 deletions core/src/mindustry/mod/Mods.java
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ public int compareTo(LoadRun l){

//this finishes parsing content fields
parser.finishParsing();

Events.fire(new ModContentLoadEvent());
}

public void handleContentError(Content content, Throwable error){
Expand Down

0 comments on commit 571b87a

Please sign in to comment.