Allow mods actually to have their own usable config gui (#6208)
This commit is contained in:
parent
25a9e477cb
commit
8adc546d92
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue