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; }