Fixed network error when joining a world

This commit is contained in:
Sollace 2024-10-10 20:02:46 +01:00
parent 156e17bee5
commit 0e49cda1cc
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -31,7 +31,7 @@ public class ZapAppleRecipe extends ShapelessRecipe {
PacketCodecs.STRING, ZapAppleRecipe::getGroup, PacketCodecs.STRING, ZapAppleRecipe::getGroup,
CraftingRecipeCategory.PACKET_CODEC, ZapAppleRecipe::getCategory, CraftingRecipeCategory.PACKET_CODEC, ZapAppleRecipe::getCategory,
ItemStack.PACKET_CODEC, recipe -> recipe.getResult(null), 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 ZapAppleRecipe::new
); );