From 3dcdf8664dce86ae0fb6d635cc7aabbdfe1686ce Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 28 Sep 2023 23:48:09 +0100 Subject: [PATCH] Fixed item duplication when filling jars --- .../com/minelittlepony/unicopia/item/JarInsertRecipe.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/item/JarInsertRecipe.java b/src/main/java/com/minelittlepony/unicopia/item/JarInsertRecipe.java index 73a68e55..17636087 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/JarInsertRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/item/JarInsertRecipe.java @@ -7,6 +7,7 @@ import net.minecraft.recipe.book.CraftingRecipeCategory; import net.minecraft.registry.DynamicRegistryManager; import net.minecraft.util.Identifier; import net.minecraft.util.Pair; +import net.minecraft.util.collection.DefaultedList; public class JarInsertRecipe extends ItemCombinationRecipe { @@ -40,4 +41,9 @@ public class JarInsertRecipe extends ItemCombinationRecipe { public RecipeSerializer getSerializer() { return URecipes.JAR_INSERT_SERIALIZER; } + + @Override + public DefaultedList getRemainder(RecipeInputInventory inventory) { + return DefaultedList.ofSize(inventory.size(), ItemStack.EMPTY); + } }