Skip to content

Commit

Permalink
Resolve crash with Filters in cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Aug 18, 2024
1 parent af6cb82 commit 0556314
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public AbstractContainerMenu createMenu(int windowId, Inventory playerInventory,
};
sender.openMenu(containerProvider, (buf -> {
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, filterItem);
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, ItemStack.EMPTY);
}));
}
if (filterItem.getItem() instanceof FilterNBT) {
Expand All @@ -111,6 +112,7 @@ public AbstractContainerMenu createMenu(int windowId, Inventory playerInventory,
};
sender.openMenu(containerProvider, (buf -> {
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, filterItem);
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, ItemStack.EMPTY);
}));
}
}
Expand Down

0 comments on commit 0556314

Please sign in to comment.