Skip to content

Commit

Permalink
Fix passing empty item stacks to Jade
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Jan 3, 2025
1 parent 959ef3f commit 39393df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ public List<ViewGroup<ItemStack>> getGroups(Accessor<?> accessor) {

private void addItems(ViewGroup<ItemStack> data, List<? extends ItemAccess> stacks) {
for (var stack : stacks) {
data.views.add(stack.toStack());
var vanillaStack = stack.toStack();
if (!vanillaStack.isEmpty()) {
data.views.add(vanillaStack);
}
}
}

Expand Down

0 comments on commit 39393df

Please sign in to comment.