diff --git a/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingClientModInitializer.java b/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingClientModInitializer.java index fea278a..70bf2fc 100644 --- a/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingClientModInitializer.java +++ b/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingClientModInitializer.java @@ -20,11 +20,10 @@ public interface MModdingClientModInitializer extends ClientModInitializer { @Override @MustBeInvokedByOverriders default void onInitializeClient(ModContainer mod) { - this.getClientElementsInitializers().forEach(ClientElementsInitializer::registerClient); if (this.getClientConfig() != null) { this.getClientConfig().initializeConfig(); MModdingLibClient.CLIENT_CONFIGS.put(this.getClientConfig().getQualifier(), this.getClientConfig()); } + this.getClientElementsInitializers().forEach(ClientElementsInitializer::registerClient); } - } diff --git a/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingModInitializer.java b/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingModInitializer.java index d48fe87..eb1770c 100644 --- a/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingModInitializer.java +++ b/src/main/java/com/mmodding/mmodding_lib/library/base/MModdingModInitializer.java @@ -24,7 +24,6 @@ public interface MModdingModInitializer extends ModInitializer { @MustBeInvokedByOverriders default void onInitialize(ModContainer mod) { MModdingLib.MMODDING_MODS.add(MModdingModContainer.from(mod)); - this.getElementsInitializers().forEach(ElementsInitializer::register); if (this.getConfig() != null) { this.getConfig().initializeConfig(); MModdingLib.CONFIGS.put(this.getConfig().getQualifier(), this.getConfig()); @@ -32,5 +31,6 @@ default void onInitialize(ModContainer mod) { MModdingLibClient.CLIENT_CONFIGS.put(this.getConfig().getQualifier(), TemporaryConfig.fromConfig(this.getConfig())); } } + this.getElementsInitializers().forEach(ElementsInitializer::register); } }