Skip to content

Commit

Permalink
Show app display name in /version
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Mar 7, 2023
1 parent 0d93b74 commit cdd4266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GalaxiAPI/src/net/ME1312/Galaxi/Plugin/PluginInfo.java
Expand Up @@ -276,7 +276,7 @@ public String getName() {
* @return Display Name
*/
public String getDisplayName() {
return (display == null)?getName():display;
return (display == null)? name : display;
}

/**
Expand Down Expand Up @@ -423,7 +423,7 @@ public List<String> getPlatformStack() {
));

if (engine != app)
stack.add(app.getName() + " v" + app.getVersion().toExtendedString() + ((app.getBuild() != null)?" (" + app.getBuild() + ')':"") + ((app.getState() != null)?" [" + app.getState() + ']':"") + ((app == this)?"":","));
stack.add(app.getDisplayName() + " v" + app.getVersion().toExtendedString() + ((app.getBuild() != null)?" (" + app.getBuild() + ')':"") + ((app.getState() != null)?" [" + app.getState() + ']':"") + ((app == this)?"":","));
if (app != this) {
for (PluginInfo plugin : scanDependencies()) {
stack.add(plugin.getDisplayName() + " v" + plugin.getVersion().toExtendedString() + ((plugin.getBuild() != null)?" (" + plugin.getBuild() + ')':"") + ((plugin.getState() != null)?" [" + plugin.getState() + ']':"") + ',');
Expand Down

0 comments on commit cdd4266

Please sign in to comment.