mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed item duplication when filling jars
This commit is contained in:
parent
98813fd62e
commit
3dcdf8664d
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@ import net.minecraft.recipe.book.CraftingRecipeCategory;
|
||||||
import net.minecraft.registry.DynamicRegistryManager;
|
import net.minecraft.registry.DynamicRegistryManager;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.Pair;
|
import net.minecraft.util.Pair;
|
||||||
|
import net.minecraft.util.collection.DefaultedList;
|
||||||
|
|
||||||
public class JarInsertRecipe extends ItemCombinationRecipe {
|
public class JarInsertRecipe extends ItemCombinationRecipe {
|
||||||
|
|
||||||
|
@ -40,4 +41,9 @@ public class JarInsertRecipe extends ItemCombinationRecipe {
|
||||||
public RecipeSerializer<?> getSerializer() {
|
public RecipeSerializer<?> getSerializer() {
|
||||||
return URecipes.JAR_INSERT_SERIALIZER;
|
return URecipes.JAR_INSERT_SERIALIZER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DefaultedList<ItemStack> getRemainder(RecipeInputInventory inventory) {
|
||||||
|
return DefaultedList.ofSize(inventory.size(), ItemStack.EMPTY);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue