Skip to content

Commit

Permalink
Merge branch 'version/1.21' into draft/item-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightenom authored Oct 4, 2024
2 parents 8c7c066 + 7b89b9b commit 45d4e95
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 45d4e95

Please sign in to comment.