Skip to content

Commit

Permalink
force to download new assets
Browse files Browse the repository at this point in the history
  • Loading branch information
hube12 committed Jun 8, 2021
1 parent 65fd3da commit f5b887e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/kaptainwutax/minemap/init/Icons.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static SwingWorker<Pair<MCVersion, String>, Void> getDownloadWorker(JDia
return new SwingWorker<Pair<MCVersion, String>, Void>() {
@Override
protected Pair<MCVersion, String> doInBackground() {
if (Assets.downloadManifest(Configs.USER_PROFILE.getAssetVersion())) {
if (Assets.downloadManifest(MCVersion.latest())) {
MCVersion version = Assets.getLatestVersion();
if (version != null) {
if (Assets.downloadVersionManifest(version, false)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ public void initComponents() {


this.threadDropdown = new Dropdown<>(i -> i + (i == 1 ? " thread" : " threads"), IntStream.rangeClosed(1, cores).boxed());
this.threadDropdown.setMaximumRowCount(7);
this.threadDropdown.selectIfPresent(Configs.USER_PROFILE.getThreadCount(cores));

this.versionDropdown = new Dropdown<>(Arrays.stream(MCVersion.values()).filter(v -> v.isNewerOrEqualTo(MCVersion.vb1_8_1)));
this.versionDropdown.setMaximumRowCount(7);
this.versionDropdown.selectIfPresent(Configs.USER_PROFILE.getVersion());

JSplitPane versionThreadSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, this.versionDropdown, this.threadDropdown);
Expand Down

0 comments on commit f5b887e

Please sign in to comment.