diff options
author | isXander <xander@isxander.dev> | 2024-04-23 18:05:44 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2024-04-23 18:05:44 +0100 |
commit | 66fd6b3fac8c7893037934cd0af0925c59114516 (patch) | |
tree | d5a2e27dc4c0c2b2e208a2715ffdeb6ac64f9a05 /src | |
parent | 0861256e1077850636d9930307cbf140cd725c39 (diff) | |
download | YetAnotherConfigLib-66fd6b3fac8c7893037934cd0af0925c59114516.tar.gz YetAnotherConfigLib-66fd6b3fac8c7893037934cd0af0925c59114516.tar.bz2 YetAnotherConfigLib-66fd6b3fac8c7893037934cd0af0925c59114516.zip |
Fix YACL's config never being loaded.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java b/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java index 6231b20..79c0fdf 100644 --- a/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java +++ b/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java @@ -10,6 +10,7 @@ import net.minecraft.server.packs.PackType; public class PlatformEntrypoint implements ClientModInitializer { @Override public void onInitializeClient() { + YACLConfig.HANDLER.load(); ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener(new YACLImageReloadListener()); } } @@ -21,6 +22,7 @@ import net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent; @Mod("yet_another_config_lib_v3") public class PlatformEntrypoint { public PlatformEntrypoint(IEventBus modEventBus) { + YACLConfig.HANDLER.load(); modEventBus.addListener(RegisterClientReloadListenersEvent.class, event -> { event.registerReloadListener(new YACLImageReloadListener()); }); @@ -34,9 +36,10 @@ import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod("yet_another_config_lib_v3") public class PlatformEntrypoint { public PlatformEntrypoint() { + YACLConfig.HANDLER.load(); FMLJavaModLoadingContext.get().getModEventBus().<RegisterClientReloadListenersEvent>addListener(event -> { event.registerReloadListener(new YACLImageReloadListener()); }); } } -*//*?}*/
\ No newline at end of file +*//*?}*/ |