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:
oitsjustjose 2013-06-28 16:16:13 -05:00
commit ff0ea9f5cb
5 changed files with 24 additions and 6 deletions

View file

@ -37,6 +37,10 @@ public class TickHandler implements IScheduledTickHandler
if (inventory.hasItem(ItemHandler$1.fireOrb.itemID) && player.isBurning()){
player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0));
}
if (inventory.hasItem(ItemHandler$1.airOrb.itemID) && player.getHeldItem() == new ItemStack(ItemHandler$1.airOrb)){
player.fallDistance = 0.0F;
}
}
public void tickEnd(EnumSet<TickType> type, Object... tickData){