diff --git a/core/src/mindustry/game/EventType.java b/core/src/mindustry/game/EventType.java index ec3bac3628b..4fdd36885a6 100644 --- a/core/src/mindustry/game/EventType.java +++ b/core/src/mindustry/game/EventType.java @@ -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. */ diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index ac5682fe8c4..70b83ab3c88 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -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){