Skip to content

Commit

Permalink
FilterConfigurables don't save blank slots
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzyypaaras committed Dec 17, 2024
1 parent f52bd51 commit dfe74bb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ default int getDrawnSlots() {

static void writeFilterNbt(NbtCompound tag, List<ItemVariant> filterItems) {
for (int i = 0; i < filterItems.size(); i++) {
tag.put("FilterStack" + i, filterItems.get(i).toNbt());
if (!filterItems.get(i).isBlank()) {
tag.put("FilterStack" + i, filterItems.get(i).toNbt());
}
}
}

Expand Down

0 comments on commit dfe74bb

Please sign in to comment.