diff --git a/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java b/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java index 2da51db..470a242 100644 --- a/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java +++ b/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java @@ -1,5 +1,7 @@ package me.topchetoeu.smoothchunks; +import java.io.File; + import com.terraformersmc.modmenu.api.ConfigScreenFactory; import com.terraformersmc.modmenu.api.ModMenuApi; @@ -38,9 +40,16 @@ public final class SmoothChunks implements ClientModInitializer, ModMenuApi { public final Event> ANIMATIONS_REGISTERING = Manager.createEvent(); private ProgressManager progress; + private ConfigManager config; private Manager ease; private Manager animation; + /** + * Gets the config manager + */ + public ConfigManager getConfigManager() { + return config; + } /** * Gets the chunk progress manager */ @@ -125,6 +134,8 @@ public final class SmoothChunks implements ClientModInitializer, ModMenuApi { registerEases(ease); registerAnimations(animation); + config = new ConfigManager(new File("config/smooth-chunks.dat"), animation, ease); + EASES_REGISTERING.invoker().register(ease); ANIMATIONS_REGISTERING.invoker().register(animation);