aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java5
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
+*//*?}*/