Skip to content

Commit

Permalink
Added bulk option for painter
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Oct 20, 2023
1 parent d93c8f3 commit 5ed0bd6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ public Collection<PainterObject> getObjects() {
}

public void handle(CompoundTag root) {
if (root.contains("bulk")) {
var bulk = root.getList("bulk", Tag.TAG_COMPOUND);

for (int i = 0; i < bulk.size(); i++) {
handle(bulk.getCompound(i));
}

return;
}

for (var key : root.getAllKeys()) {
var tag = root.getCompound(key);

Expand Down

0 comments on commit 5ed0bd6

Please sign in to comment.