Changed air orb back to its original fuctionality

This commit is contained in:
allstar69 2013-06-23 03:04:55 -07:00
commit c42259dc88

View file

@ -21,11 +21,10 @@ 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)
entityPlayer.addVelocity(0, 2.5, 0);
else
entityPlayer.addVelocity(entityPlayer.motionX * 1.0, 0, entityPlayer.motionZ * 1.0);
if (!world.isRemote)
{