Energy Orb now adds the speed effect when held.

This commit is contained in:
allstar69 2013-06-28 18:36:08 -07:00
commit 0eecbc5f3e

View file

@ -43,6 +43,10 @@ public class TickHandler implements IScheduledTickHandler
player.fallDistance = 0.0F;
}
if (itemstack != null && itemstack.itemID == ItemHandler$1.energyOrb.itemID){
player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2));
}
}
public void tickEnd(EnumSet<TickType> type, Object... tickData){