when used in air the player will now not jump up so high
This commit is contained in:
parent
f3ebfbc7c1
commit
475a458f9a
1 changed files with 5 additions and 2 deletions
|
|
@ -22,7 +22,10 @@ public class ItemOrbAir extends Item {
|
|||
{
|
||||
world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F);
|
||||
|
||||
entityPlayer.addVelocity(0, 2.5, 0);
|
||||
if (entityPlayer.onGround)
|
||||
entityPlayer.addVelocity(0, 2.5, 0);
|
||||
else
|
||||
entityPlayer.addVelocity(0, 0.5, 0);
|
||||
|
||||
if (!world.isRemote)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue