From 475a458f9a22b9bc046481acf0fa4b6d4030d08e Mon Sep 17 00:00:00 2001 From: Roger Schoellgen Date: Fri, 21 Jun 2013 19:37:22 -0700 Subject: [PATCH] when used in air the player will now not jump up so high --- common/MysticWorld/Items/ItemOrbAir.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbAir.java b/common/MysticWorld/Items/ItemOrbAir.java index 0f12037..1897f9e 100644 --- a/common/MysticWorld/Items/ItemOrbAir.java +++ b/common/MysticWorld/Items/ItemOrbAir.java @@ -21,8 +21,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); - - 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) {