From 0ec6a0228ba9b30963b84e38183796ff542adc40 Mon Sep 17 00:00:00 2001 From: Technici4n <13494793+Technici4n@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:57:18 +0200 Subject: [PATCH] Fix checkstyle --- .../fabric/test/recipe/ingredient/SerializationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fabric-recipe-api-v1/src/testmod/java/net/fabricmc/fabric/test/recipe/ingredient/SerializationTests.java b/fabric-recipe-api-v1/src/testmod/java/net/fabricmc/fabric/test/recipe/ingredient/SerializationTests.java index d6324ab3af..cd83b91d4b 100644 --- a/fabric-recipe-api-v1/src/testmod/java/net/fabricmc/fabric/test/recipe/ingredient/SerializationTests.java +++ b/fabric-recipe-api-v1/src/testmod/java/net/fabricmc/fabric/test/recipe/ingredient/SerializationTests.java @@ -74,7 +74,7 @@ public void testCustomIngredientSerialization(TestContext context) { {"ingredients":[{"item":"minecraft:stone"}],"fabric:type":"fabric:all"} """.trim(); - var ingredient = DefaultCustomIngredients.all( + Ingredient ingredient = DefaultCustomIngredients.all( Ingredient.ofItems(Items.STONE) ); JsonElement json = ingredient.toJson(allowEmpty); @@ -87,6 +87,7 @@ public void testCustomIngredientSerialization(TestContext context) { context.assertTrue(deserialized.getCustomIngredient() != null, "Custom ingredient was not deserialized"); context.assertTrue(deserialized.getCustomIngredient().getSerializer() == ingredient.getCustomIngredient().getSerializer(), "Serializer did not match"); } + context.complete(); } }