Skip to content

Commit

Permalink
fix: item recipe result had no serializer override
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jul 30, 2023
1 parent a048f3f commit bae0b20
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@ public ItemStack[] getStacks() {
public byte getType() {
return TYPE;
}

@Override
public void toNetwork(FriendlyByteBuf pBuffer) {
super.toNetwork(pBuffer); //write type

pBuffer.writeItemStack(this.stack, false);
}
}

0 comments on commit bae0b20

Please sign in to comment.