Skip to content

Commit

Permalink
9: prepares for create .jar
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Mar 16, 2024
1 parent a014805 commit 6437718
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ loom {

dependencies {
// https://mvnrepository.com/artifact/org.bouncycastle/bcpg-jdk18on
include 'org.bouncycastle:bcpg-jdk18on:1.77'
implementation 'org.bouncycastle:bcpg-jdk18on:1.77'

include 'org.json:json:20231013'
implementation 'org.json:json:20231013'
modApi "com.terraformersmc:modmenu:7.2.2"

include "net.lingala.zip4j:zip4j:2.11.5"
implementation "net.lingala.zip4j:zip4j:2.11.5"

modApi "com.terraformersmc:modmenu:7.2.2"

// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected void init() {
}).size(50, 20).position(this.width-60, 10).build());

int height = 10;
for (Pack pack : DynamicPackMod.packs) {
for (Pack pack : DynamicPackMod.packs.toArray(new Pack[0])) {
Out.println("gui pack: " + pack);
try {
addDrawableChild(ButtonWidget.builder(Text.of(pack.getLocation().getName() + ":"+pack.getCachedUpdateAvailableStatus()), button -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public void run() throws IOException, NoSuchAlgorithmException {
}

public void close() throws IOException {
zipFileSystem.close();
if (zipFileSystem != null && zipFileSystem.isOpen()) {
zipFileSystem.close();
}
}

private void processContent(JSONObject object) throws IOException, NoSuchAlgorithmException {
Expand Down

0 comments on commit 6437718

Please sign in to comment.