diff --git a/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java b/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java index 908e46557..910e81710 100644 --- a/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java +++ b/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java @@ -151,6 +151,10 @@ public class ModInfo implements IModInfo return this.logoFile; } + /** + * This is no longer used. The Mods List GUI currently directly checks whether there is an EntryPoint registered. + */ + @Deprecated public boolean hasConfigUI() { return false; diff --git a/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java b/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java index 916e4366c..9b6ed459a 100644 --- a/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java +++ b/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java @@ -405,8 +405,7 @@ public class GuiModList extends Screen return; } ModInfo selectedMod = selected.getInfo(); - - this.configButton.active = selectedMod.hasConfigUI(); + this.configButton.active = ConfigGuiHandler.getGuiFactoryFor(selectedMod).isPresent(); List lines = new ArrayList<>(); VersionChecker.CheckResult vercheck = VersionChecker.getResult(selectedMod);