From c737979e785d10033df04361d6eb79d01f65e548 Mon Sep 17 00:00:00 2001 From: Mikerooni <139889766+mikerooni@users.noreply.github.com> Date: Mon, 7 Aug 2023 16:47:03 +0200 Subject: [PATCH] fix: implement SizedIngredient.fromJson on fabric (#282) --- .../api/recipe/ingredient/fabric/SizedIngredientImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fabric/src/main/java/com/gregtechceu/gtceu/api/recipe/ingredient/fabric/SizedIngredientImpl.java b/fabric/src/main/java/com/gregtechceu/gtceu/api/recipe/ingredient/fabric/SizedIngredientImpl.java index d044a122e7..7d78ce597a 100644 --- a/fabric/src/main/java/com/gregtechceu/gtceu/api/recipe/ingredient/fabric/SizedIngredientImpl.java +++ b/fabric/src/main/java/com/gregtechceu/gtceu/api/recipe/ingredient/fabric/SizedIngredientImpl.java @@ -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 { public static Serializer INSTANCE = new Serializer();