mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Allow mods actually to have their own usable config gui (#6208)
This commit is contained in:
1 parent
25a9e477cb
commit
8adc546d92
2 files changed
+5
-2
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user