AntiqueAtlasTeam/AntiqueAtlas

Antique Atlas should register its config screen on Forge

MaxNeedsSnacks opened this issue · 0 comments

Describe the bug
Antique Atlas currently does not register its cloth config screen on Forge (unlike on Fabric, where it is registered through the ModMenuApi entrypoint). This means that to my knowledge, you currently cannot edit the config file in-game.

One way you could fix this (and probably the intended way) is through using an extension point for net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory, using something like this during mod init on Forge:

ModLoadingContext.get().registerExtensionPoint(ConfigGuiHandler.ConfigGuiFactory.class,
  () -> new ConfigGuiHandler.ConfigGuiFactory((mc, parent) -> AutoConfig.getConfigScreen(AntiqueAtlasConfig.class, parent).get())
);

Version information (please complete the following information):

  • AntiqueAtlas: 7.0.1
  • Minecraft: 1.18.2
  • Forge: 40.1.80