Skip to content

Commit

Permalink
fix: used item types % display never goes down if items are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Aug 18, 2024
1 parent 98e2ec5 commit 80fe2a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public List<ItemStack> getStacks() {
result.add(entry.getKey().stack().copyWithCount(entry.getIntValue()));
}

this.usedItemTypes = this.itemStackHandler.getSlots();
this.usedItemTypes = this.itemStackHandler.keyToCountMap().size();
this.usedTotalItemCount = this.itemStackHandler.totalItemCount();
return result;
}
Expand Down

0 comments on commit 80fe2a6

Please sign in to comment.