From d5904bfcc8abfab51c2851f4dce112ee34b48c11 Mon Sep 17 00:00:00 2001 From: allstar69 Date: Tue, 9 Jul 2013 20:35:51 -0700 Subject: [PATCH] Void shards break when emptied. --- common/MysticWorld/Items/ItemVoidShard.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/MysticWorld/Items/ItemVoidShard.java b/common/MysticWorld/Items/ItemVoidShard.java index 16d54d1..d8b4cb6 100644 --- a/common/MysticWorld/Items/ItemVoidShard.java +++ b/common/MysticWorld/Items/ItemVoidShard.java @@ -20,7 +20,7 @@ public class ItemVoidShard extends Item { super(id); this.setMaxStackSize(1); this.setCreativeTab(MysticWorld.MysticWorldTab); - this.setMaxDamage(30); + this.setMaxDamage(1); } @Override @@ -52,6 +52,7 @@ public class ItemVoidShard extends Item { entityPlayer.experienceLevel += itemStack.stackTagCompound.getInteger("xpStored"); itemStack.stackTagCompound.setInteger("xpStored", 0); itemStack.stackTagCompound.setBoolean("filled", false); + itemStack.damageItem(2, entityPlayer); } return itemStack;