This repository was archived by the owner on Aug 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
src/main/java/com/pistacium/modcheck Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# ModCheck
22![ ModCheck] ( https://cdn.7tv.app/emote/60eefb20119bd109472f7f4b/4x )
3+
4+ Minecraft SpeedRun Mods Auto Installer/Updater
5+
6+ original idea by [ pistacium] ( https://github.com/pistacium/ModCheck )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44}
55
66group ' com.redlimerl'
7- version ' 0.1'
7+ version ' 0.1.1 '
88repositories {
99 mavenCentral()
1010}
Original file line number Diff line number Diff line change 11package com .pistacium .modcheck ;
22
33import com .pistacium .modcheck .mod .ModData ;
4+ import com .pistacium .modcheck .mod .resource .ModResource ;
45import com .pistacium .modcheck .mod .version .ModVersion ;
56import com .pistacium .modcheck .util .ModCheckStatus ;
67
@@ -241,11 +242,12 @@ public void updateModList() {
241242 ModVersion mcVersion = (ModVersion ) this .versionSelection .getSelectedItem ();
242243
243244 for (ModData modData : ModCheck .AVAILABLE_MODS ) {
244- if (modData .getLatestVersionResource (mcVersion ) != null ) {
245+ ModResource modResource = modData .getLatestVersionResource (mcVersion );
246+ if (modResource != null ) {
245247 JPanel modPanel = new JPanel ();
246248 modPanel .setLayout (new BoxLayout (modPanel , BoxLayout .Y_AXIS ));
247249
248- JCheckBox checkBox = new JCheckBox (modData .getName ());
250+ JCheckBox checkBox = new JCheckBox (modData .getName () + " (v" + ( modResource . getModVersion (). getVersionName ()) + ")" );
249251 checkBox .addActionListener (i -> {
250252 boolean isSelected = checkBox .isSelected ();
251253 for (String incompatibleMod : modData .getIncompatibleMods ()) {
You can’t perform that action at this time.
0 commit comments