Skip to content

Commit

Permalink
fix: implement SizedIngredient.fromJson on fabric (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerooni authored Aug 7, 2023
1 parent f73a94a commit c737979
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public static SizedIngredient create(String tag, int amount) {
return this;
}

public static SizedIngredient fromJson(JsonObject json) {
return Serializer.INSTANCE.read(json);
}

public static class Serializer implements CustomIngredientSerializer<SizedIngredientImpl> {

public static Serializer INSTANCE = new Serializer();
Expand Down

0 comments on commit c737979

Please sign in to comment.