Skip to content

Commit

Permalink
Fix some recipe encoding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Jun 15, 2021
1 parent 59e4142 commit 1c91ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public IncrementalModifierRecipe read(ResourceLocation id, PacketBuffer buffer,

@Override
protected void writeSafe(PacketBuffer buffer, IncrementalModifierRecipe recipe) {
super.write(buffer, recipe);
super.writeSafe(buffer, recipe);
recipe.input.write(buffer);
buffer.writeVarInt(recipe.amountPerInput);
buffer.writeVarInt(recipe.neededPerLevel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public ModifierRecipe read(ResourceLocation id, PacketBuffer buffer, Ingredient

@Override
protected void writeSafe(PacketBuffer buffer, ModifierRecipe recipe) {
super.write(buffer, recipe);
super.writeSafe(buffer, recipe);
buffer.writeVarInt(recipe.inputs.size());
for (SizedIngredient ingredient : recipe.inputs) {
ingredient.write(buffer);
Expand Down

0 comments on commit 1c91ea6

Please sign in to comment.