Changed air orb back to its original fuctionality
This commit is contained in:
parent
09afbfa78a
commit
c42259dc88
1 changed files with 2 additions and 3 deletions
|
|
@ -22,10 +22,9 @@ public class ItemOrbAir extends Item {
|
||||||
{
|
{
|
||||||
world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F);
|
world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F);
|
||||||
|
|
||||||
|
|
||||||
if (entityPlayer.onGround)
|
if (entityPlayer.onGround)
|
||||||
entityPlayer.addVelocity(0, 2.5, 0);
|
entityPlayer.addVelocity(0, 2.5, 0);
|
||||||
else
|
|
||||||
entityPlayer.addVelocity(entityPlayer.motionX * 1.0, 0, entityPlayer.motionZ * 1.0);
|
|
||||||
|
|
||||||
if (!world.isRemote)
|
if (!world.isRemote)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue