Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Oct 25, 2023
1 parent d94dba2 commit 0ec6a02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
}

0 comments on commit 0ec6a02

Please sign in to comment.