Skip to content

Commit

Permalink
Allow mods actually to have their own usable config gui (#6208)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoDeveloping authored and LexManos committed Oct 15, 2019
1 parent 25a9e47 commit 8adc546
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ public Optional<String> getLogoFile()
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ private void updateCache()
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);

Expand Down

0 comments on commit 8adc546

Please sign in to comment.