From 0eecbc5f3ef7b105ecff8b5869f8ccc6f59865c6 Mon Sep 17 00:00:00 2001 From: allstar69 Date: Fri, 28 Jun 2013 18:36:08 -0700 Subject: [PATCH] Energy Orb now adds the speed effect when held. --- common/MysticWorld/TickHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/MysticWorld/TickHandler.java b/common/MysticWorld/TickHandler.java index d3a2d4f..adaaeba 100644 --- a/common/MysticWorld/TickHandler.java +++ b/common/MysticWorld/TickHandler.java @@ -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 type, Object... tickData){