Skip to content

Commit

Permalink
[i] Fix ResourcePackCreator#isEmpty not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jan 29, 2023
1 parent 5c04635 commit 4cbce89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fabric_version=0.51.1+1.18.2

maven_group = eu.pb4

all_version = 0.2.0-rc.4.7
core_version = 0.2.0-rc.4.7
all_version = 0.2.0-rc.4.8
core_version = 0.2.0-rc.4.8
blocks_ext_version = 0.1.0-alpha.7
mod_patches_version = 0.0.0-alpha.0
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,14 @@ public byte[] getPackIcon() {
}

public boolean isEmpty() {
return this.items.values().size() <= 0 || this.modIds.size() <= 0 || this.armorModelMap.size() <= 0;
return this.items.isEmpty() && this.modIds.isEmpty() && this.armorModelMap.isEmpty() && this.creationEvent.isEmpty();
}

public boolean build(Path output) throws ExecutionException, InterruptedException {
boolean successful = true;

var builder = new DefaultRPBuilder(output);


if (this.packDescription != null) {
builder.addData("pack.mcmeta", ("" +
"{\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ public void invoke(Consumer<T> invoker) {
invoker.accept(handler);
}
}

public boolean isEmpty() {
return this.handlers.isEmpty();
}
}

0 comments on commit 4cbce89

Please sign in to comment.