Skip to content

Conversation

@halotroop2288
Copy link

  • Groovy DSL -> Kotlin DSL
  • Gradle Wrapper -> 8.14.2
  • Gradle Version Catalog
  • Lombok -> 1.18.38
  • GSON -> 2.9.1
  • Glass Site Java API -> 0.7
  • GlassLauncher Commons -> 1.4
  • Local blog -> Online updated blog

- Groovy DSL -> Kotlin DSL
- Gradle Wrapper -> 8.14.2
- Gradle Version Catalog
- Lombok -> 1.18.38
- GSON -> 2.9.1
- Glass Site Java API -> 0.7
- GlassLauncher Commons -> 1.4
- Local blog -> Online updated blog
Copy link
Member

@calmilamsy calmilamsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to update the gradle system and some of my more questionable code choices.

I do have concerns on loading remote content vs storing it locally just so the launcher keeps looking nice when there's no internet connection. Maybe keep the old system as an offline fallback/toggle?

Just doing a few formatting pokes so they don't spiral.

Comment on lines +177 to +185
private JScrollPane makeBlog() {
JTextPane blog = new JTextPane();
blog.setContentType("text/html");
blog.setText(page);
try {
blog.setPage(new URL("https://halotroop2288.github.io/MCUpdate"));
blog.setContentType("text/html");
} catch (Throwable ignored) {
Main.getLogger().warning("Couldn't load MCUpdate Blog.");
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project uses spaces.

Comment on lines +17 to +30
switch (arg.toLowerCase()) {
case "-dosound":
doSound = true;
break;
case "-doskin":
doSkin = true;
break;
case "-docape":
doCape = true;
break;
case "-dologin":
doLogin = true;
break;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Comment on lines +58 to +59
return defaultColor != getForeground() && Arrays.equals(super.getPassword(), hint.toCharArray())
? new char[]{} : super.getPassword();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Comment on lines +181 to +189
} else if (!version.equals("custom")) {
try {
FileUtils.delete(new File(minecraftFolder));
} catch (Exception e) {
e.printStackTrace();
}
}

progressWindow.increaseProgress();
progressWindow.increaseProgress();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Comment on lines +252 to +258
if (component.getUid().equals("customjar") && !component.isDisabled()) {
hasCustomJar = true;
} else if (component.getCachedName() != null) {
modList.getJarMods().add(modList.getJarMods().size(), new Mod(component.getUid().replace("org.multimc.jarmod.", "") + ".jar", component.getCachedName(), 0, !component.isDisabled()));
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants