From 0e49cda1cc856cc3db46d9d5125a7492614be842 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 10 Oct 2024 20:02:46 +0100 Subject: [PATCH] Fixed network error when joining a world --- .../java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java b/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java index 97cdd1e3..dbd953df 100644 --- a/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java @@ -31,7 +31,7 @@ public class ZapAppleRecipe extends ShapelessRecipe { PacketCodecs.STRING, ZapAppleRecipe::getGroup, CraftingRecipeCategory.PACKET_CODEC, ZapAppleRecipe::getCategory, ItemStack.PACKET_CODEC, recipe -> recipe.getResult(null), - Ingredient.PACKET_CODEC.collect(PacketCodecs.toCollection(i -> DefaultedList.ofSize(i, Ingredient.EMPTY))), ZapAppleRecipe::getIngredients, + Ingredient.PACKET_CODEC.collect(PacketCodecs.toCollection(DefaultedList::ofSize)), ZapAppleRecipe::getIngredients, ZapAppleRecipe::new );