summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
index cd621272..c0854276 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
@@ -210,6 +210,11 @@ public class CraftItemStack extends ItemStack {
return item;
}
+ @Override
+ public CraftItemStack clone() {
+ return new CraftItemStack(this.item.cloneItemStack());
+ }
+
public static net.minecraft.server.ItemStack createNMSItemStack(ItemStack original) {
return new CraftItemStack(original).getHandle();
}