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 4 years ago