Skip to content

Commit

Permalink
Fix Disjunction Cloth being consumed when used
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Oct 9, 2024
1 parent a80c79a commit d573298
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}
}

0 comments on commit d573298

Please sign in to comment.