From 66fd6b3fac8c7893037934cd0af0925c59114516 Mon Sep 17 00:00:00 2001 From: isXander Date: Tue, 23 Apr 2024 18:05:44 +0100 Subject: Fix YACL's config never being loaded. --- src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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().addListener(event -> { event.registerReloadListener(new YACLImageReloadListener()); }); } } -*//*?}*/ \ No newline at end of file +*//*?}*/ -- cgit