diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-17 01:10:07 +0200 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-17 01:10:07 +0200 |
| commit | e66f86a8624a5504fb1b389982883be9ebe6a092 (patch) | |
| tree | 4dcc23f3589f2b2f48116fbe8ac8410020c7deef /common/darkknight/jewelrycraft/item/ItemRing.java | |
| parent | 766dafe80bdf9d2fe338346971fde1b87d0b7ad8 (diff) | |
Final commit, couldn't make the bench work, so I will send it as it is
Diffstat (limited to 'common/darkknight/jewelrycraft/item/ItemRing.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/item/ItemRing.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/darkknight/jewelrycraft/item/ItemRing.java b/common/darkknight/jewelrycraft/item/ItemRing.java index 8d6b83d..8953b9a 100644 --- a/common/darkknight/jewelrycraft/item/ItemRing.java +++ b/common/darkknight/jewelrycraft/item/ItemRing.java @@ -77,7 +77,7 @@ public class ItemRing extends ItemBase public void onUpdate(ItemStack stack, World par2World, Entity par3Entity, int par4, boolean par5) { - if(stack.getTagCompound().hasKey("effect")) + if(stack.hasTagCompound() && stack.getTagCompound().hasKey("effect")) { NBTTagCompound effectNBT = (NBTTagCompound) stack.getTagCompound().getTag("effect"); PotionEffect effect = new PotionEffect(0, 0); |
