Allow mods actually to have their own usable config gui (#6208)

This commit is contained in:
JoJoModding 2019-10-15 23:56:27 +02:00 committed by LexManos
parent 25a9e477cb
commit 8adc546d92
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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<String> lines = new ArrayList<>();
VersionChecker.CheckResult vercheck = VersionChecker.getResult(selectedMod);