Skip to content

Commit

Permalink
Update ItemAnvilRecipe.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Mar 5, 2024
1 parent 9a16e75 commit c8f175c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private Serializer() {
NonNullList<Component> components = componentsFromJson(GsonHelper.getAsJsonArray(json, "components"));
ItemStack result = itemStackFromJson(GsonHelper.getAsJsonObject(json, "result"));
Location resultLocation = !json.has("result_location") ? Location.UP : Location.byId(json.get("result_location").getAsString());
boolean isAnvilDamage = !json.has("is_anvil_damage") && json.get("is_anvil_damage").getAsBoolean();
boolean isAnvilDamage = json.has("is_anvil_damage") && json.get("is_anvil_damage").getAsBoolean();
return new ItemAnvilRecipe(id, input.getFirst(), input.getSecond(), location, components, result, resultLocation, isAnvilDamage);
}

Expand Down

0 comments on commit c8f175c

Please sign in to comment.