Skip to content

Commit

Permalink
Fix crash with Data cards - resolves #298
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Sep 16, 2024
1 parent aa061ff commit 571b45e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public InteractionResultHolder<ItemStack> use(Level level, Player player, Intera
player.openMenu(new SimpleMenuProvider(
(windowId, playerInventory, playerEntity) -> new FilterNBTContainer(windowId, playerInventory, player, itemstack), Component.translatable("")), (buf -> {
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, itemstack);
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, ItemStack.EMPTY);
}));

return new InteractionResultHolder<>(InteractionResult.PASS, itemstack);
Expand Down

0 comments on commit 571b45e

Please sign in to comment.