From a958f31454cbba03c15e9c8c874a2325476d81b3 Mon Sep 17 00:00:00 2001 From: allstar69 Date: Fri, 28 Jun 2013 18:31:11 -0700 Subject: [PATCH] Tweaked how the Air Orb takes damage. --- common/MysticWorld/Items/ItemOrbAir.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbAir.java b/common/MysticWorld/Items/ItemOrbAir.java index 9e11a85..96d78a7 100644 --- a/common/MysticWorld/Items/ItemOrbAir.java +++ b/common/MysticWorld/Items/ItemOrbAir.java @@ -21,17 +21,12 @@ public class ItemOrbAir extends Item { public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer) { - world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - if (entityPlayer.onGround) { + world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); + itemStack.damageItem(1, entityPlayer); entityPlayer.addVelocity(0, 2.5, 0); } - - if (!world.isRemote) - { - itemStack.damageItem(1, entityPlayer); - } return itemStack; }