Skip to content

Commit

Permalink
hotfix #700
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 27, 2024
1 parent d048a61 commit 7b89b9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected void toBytes(final RegistryFriendlyByteBuf buf)
buf.writeInt(blocks.size());
for (final ItemStack block : blocks)
{
ItemStack.STREAM_CODEC.encode(buf, block);
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, block);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ protected void toBytes(final RegistryFriendlyByteBuf buf)
{
buf.writeBlockPos(from);
buf.writeBlockPos(to);
ItemStack.STREAM_CODEC.encode(buf, blockTo);
ItemStack.STREAM_CODEC.encode(buf, blockFrom);
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, blockTo);
ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, blockFrom);
buf.writeInt(pct);
}

Expand Down

0 comments on commit 7b89b9b

Please sign in to comment.