Air Orb no longer allows fall damage when in inventory. Trying to get it to only do so when held, couldn't :c

This commit is contained in:
oitsjustjose 2013-06-28 16:16:13 -05:00
commit ff0ea9f5cb
5 changed files with 24 additions and 6 deletions

View file

@ -22,10 +22,11 @@ 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);
}
if (!world.isRemote)
{