Skip to content

Commit

Permalink
Fix ModListGUI not being rendered if we have no mods installed
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasluqui committed Mar 26, 2020
1 parent b6b5dfd commit 8cde3f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/xyz/lucasallegri/launcher/mods/ModListGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,31 +136,31 @@ public void actionPerformed(ActionEvent _action) {
separator.setBounds(178, 117, 195, 2);
modListGUIFrame.getContentPane().add(separator);

labelName = new JLabel(ModList.installedMods.get(0).getDisplayName());
labelName = new JLabel("");
labelName.setFont(Fonts.fontMed);
labelName.setHorizontalAlignment(SwingConstants.CENTER);
labelName.setBounds(178, 135, 188, 14);
modListGUIFrame.getContentPane().add(labelName);

labelAuthor = new JLabel(Language.getValue("m.mod_author", ModList.installedMods.get(0).getAuthor()));
labelAuthor = new JLabel("");
labelAuthor.setFont(Fonts.fontReg);
labelAuthor.setHorizontalAlignment(SwingConstants.CENTER);
labelAuthor.setBounds(178, 152, 188, 14);
modListGUIFrame.getContentPane().add(labelAuthor);

labelDescription = new JLabel("<html>" + ModList.installedMods.get(0).getDescription() + "</html>");
labelDescription = new JLabel("");
labelDescription.setFont(Fonts.fontReg);
labelDescription.setHorizontalAlignment(SwingConstants.LEADING);
labelDescription.setVerticalAlignment(SwingConstants.TOP);
labelDescription.setBounds(188, 183, 178, 70);
modListGUIFrame.getContentPane().add(labelDescription);

labelVersion = new JLabel(Language.getValue("m.mod_version", ModList.installedMods.get(0).getVersion()));
labelVersion = new JLabel("");
labelVersion.setFont(Fonts.fontReg);
labelVersion.setBounds(188, 261, 178, 14);
modListGUIFrame.getContentPane().add(labelVersion);

labelCompatibility = new JLabel(Language.getValue("m.mod_compatibility", ModList.installedMods.get(0).getCompatibilityVersion()));
labelCompatibility = new JLabel("");
labelCompatibility.setFont(Fonts.fontReg);
labelCompatibility.setBounds(188, 282, 178, 14);
modListGUIFrame.getContentPane().add(labelCompatibility);
Expand Down

0 comments on commit 8cde3f1

Please sign in to comment.