Fixed item duplication when filling jars

This commit is contained in:
Sollace 2023-09-28 23:48:09 +01:00
parent 98813fd62e
commit 3dcdf8664d
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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<ItemStack> getRemainder(RecipeInputInventory inventory) {
return DefaultedList.ofSize(inventory.size(), ItemStack.EMPTY);
}
}