Skip to content

Commit

Permalink
Fix JitPack build, changed icon, ported Java icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamarine committed Nov 6, 2022
1 parent 2ec5303 commit f7ebd35
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
# Also makes builds more reliable and less likely to randomly fail.
org.gradle.daemon=false

mod_version=1.8.5-bta.1
mod_version=1.8.5-bta.2
mod_group=io.github.prospector
mod_name=modmenu

Expand Down
4 changes: 4 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
before_install:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- source install-jdk.sh --feature 17
- jshell --version
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ private BufferedImage createIcon() {
path = modMenu.getPath("assets/" + ModMenu.MOD_ID + "/fabric_icon.png");
} else if (metadata.getId().equals("minecraft")) {
path = modMenu.getPath("assets/" + ModMenu.MOD_ID + "/mc_icon.png");
} else if (metadata.getId().equals("java")) {
path = modMenu.getPath("assets/" + ModMenu.MOD_ID + "/java_icon.png");
} else {
path = modMenu.getPath("assets/" + ModMenu.MOD_ID + "/grey_fabric_icon.png");
}
path = modMenu.getPath("assets/" + ModMenu.MOD_ID + "/grey_fabric_icon.png");
}
}
cached = this.list.getCachedModIcon(path);
if (cached != null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.github.prospector.modmenu.util;

import com.google.gson.JsonElement;
import net.fabricmc.loader.api.*;
import net.fabricmc.loader.api.metadata.*;

Expand Down
Binary file modified src/main/resources/assets/modmenu/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/assets/modmenu/java_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f7ebd35

Please sign in to comment.