Skip to content

Commit

Permalink
Write collection size, otherwise results in deserialization failure (#…
Browse files Browse the repository at this point in the history
…10530)

Missing size int to the serialization
  • Loading branch information
Thodor12 authored Dec 12, 2024
1 parent 47408b4 commit d98b6cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static void sendGlobalDiseasesPackets(final ServerPlayer player)
byteBuf.writeResourceLocation(disease.id());
byteBuf.writeComponent(disease.name());
byteBuf.writeInt(disease.rarity());
byteBuf.writeInt(disease.cureItems().size());
for (final ItemStorage cureItem : disease.cureItems())
{
StandardFactoryController.getInstance().serialize(byteBuf, cureItem);
Expand Down

0 comments on commit d98b6cf

Please sign in to comment.