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:
parent
a577c3bcd0
commit
ff0ea9f5cb
5 changed files with 24 additions and 6 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue