diff options
| author | bspkrs <bspkrs@gmail.com> | 2013-12-16 23:44:45 -0500 |
|---|---|---|
| committer | bspkrs <bspkrs@gmail.com> | 2013-12-16 23:44:45 -0500 |
| commit | d83ae9e5dff05ec876050fdc64e597b1b54ecd3d (patch) | |
| tree | 75821c87acf325feaf73f393c8e2fc4428a7ad06 /common/darkknight/jewelrycraft/item/ItemRing.java | |
| parent | e66f86a8624a5504fb1b389982883be9ebe6a092 (diff) | |
last ditch effort to get crafting table working
Diffstat (limited to 'common/darkknight/jewelrycraft/item/ItemRing.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/item/ItemRing.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/common/darkknight/jewelrycraft/item/ItemRing.java b/common/darkknight/jewelrycraft/item/ItemRing.java index 8953b9a..aa23da3 100644 --- a/common/darkknight/jewelrycraft/item/ItemRing.java +++ b/common/darkknight/jewelrycraft/item/ItemRing.java @@ -75,14 +75,15 @@ public class ItemRing extends ItemBase } } - public void onUpdate(ItemStack stack, World par2World, Entity par3Entity, int par4, boolean par5) + @Override + public void onUpdate(ItemStack stack, World par2World, Entity par3Entity, int par4, boolean par5) { - if(stack.hasTagCompound() && stack.getTagCompound().hasKey("effect")) + if (stack.hasTagCompound() && stack.getTagCompound().hasKey("effect") && !par2World.isRemote) { - NBTTagCompound effectNBT = (NBTTagCompound) stack.getTagCompound().getTag("effect"); - PotionEffect effect = new PotionEffect(0, 0); - effect.readCustomPotionEffectFromNBT(effectNBT); - ((EntityPlayer)par3Entity).addPotionEffect(effect); + // NBTTagCompound effectNBT = (NBTTagCompound) stack.getTagCompound().getTag("effect"); + // PotionEffect effect = new PotionEffect(0, 0); + // effect.readCustomPotionEffectFromNBT(effectNBT); + // ((EntityPlayer) par3Entity).addPotionEffect(effect); } } |
