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
|
|
@ -21,8 +21,11 @@ public class ItemOrbAir extends Item {
|
||||||
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer)
|
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);
|
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)
|
if (!world.isRemote)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue