Do the following wherever you want to use your config. This must be called after registration.
ModConfig config = AutoConfig.getConfigHolder(ModConfig.class).getConfig();
Last updated 3 years ago