diff options
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); |
