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:
parent
a577c3bcd0
commit
ff0ea9f5cb
5 changed files with 24 additions and 6 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue