From e66f86a8624a5504fb1b389982883be9ebe6a092 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Tue, 17 Dec 2013 01:10:07 +0200 Subject: Final commit, couldn't make the bench work, so I will send it as it is --- common/darkknight/jewelrycraft/item/ItemRing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/darkknight/jewelrycraft/item/ItemRing.java') 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); -- cgit v1.2.3