From d57329897351f68a6e23b8371993c55a8168d846 Mon Sep 17 00:00:00 2001 From: Me <135455255+IcarussOne@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:50:48 -0500 Subject: [PATCH] Fix Disjunction Cloth being consumed when used --- .../common/items/misc/ItemDisjunctionCloth.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/verdantartifice/thaumicwonders/common/items/misc/ItemDisjunctionCloth.java b/src/main/java/com/verdantartifice/thaumicwonders/common/items/misc/ItemDisjunctionCloth.java index b67270a..2734abe 100644 --- a/src/main/java/com/verdantartifice/thaumicwonders/common/items/misc/ItemDisjunctionCloth.java +++ b/src/main/java/com/verdantartifice/thaumicwonders/common/items/misc/ItemDisjunctionCloth.java @@ -1,5 +1,7 @@ package com.verdantartifice.thaumicwonders.common.items.misc; +import javax.annotation.Nonnull; + import com.verdantartifice.thaumicwonders.common.items.base.ItemTW; import net.minecraft.item.ItemStack; @@ -20,4 +22,11 @@ public boolean isBookEnchantable(ItemStack stack, ItemStack book) { public boolean hasContainerItem(ItemStack stack) { return true; } + + @Nonnull + @Override + public ItemStack getContainerItem(@Nonnull ItemStack itemStack) { + ItemStack newStack = itemStack.copy(); + return newStack; + } }