Skip to content

Commit

Permalink
fix: Network error when setting crafter template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rover656 committed Sep 30, 2024
1 parent 8e3b57a commit 1de0385
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record UpdateCrafterTemplatePacket(List<ItemStack> recipeInputs) implemen
public static final Type<UpdateCrafterTemplatePacket> TYPE = new Type<>(EnderIOBase.loc("update_crafter_template"));

public static StreamCodec<RegistryFriendlyByteBuf, UpdateCrafterTemplatePacket> STREAM_CODEC =
ItemStack.STREAM_CODEC.apply(ByteBufCodecs.list())
ItemStack.OPTIONAL_STREAM_CODEC.apply(ByteBufCodecs.list())
.map(UpdateCrafterTemplatePacket::new, UpdateCrafterTemplatePacket::recipeInputs);

@Override
Expand Down

0 comments on commit 1de0385

Please sign in to comment.