When out of leaps in dragon escape there is no longer the "You can now
use Leap" message.
This commit is contained in:
Sam 2016-06-17 18:08:37 +01:00
parent cbca7e9f7e
commit 35b00679e0

View File

@ -13,6 +13,7 @@ import mineplex.core.common.util.F;
import mineplex.core.common.util.NautHashMap; import mineplex.core.common.util.NautHashMap;
import mineplex.core.common.util.UtilAction; import mineplex.core.common.util.UtilAction;
import mineplex.core.common.util.UtilBlock; import mineplex.core.common.util.UtilBlock;
import mineplex.core.common.util.UtilItem;
import mineplex.core.common.util.UtilPlayer; import mineplex.core.common.util.UtilPlayer;
import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilServer;
import mineplex.core.recharge.Recharge; import mineplex.core.recharge.Recharge;
@ -72,7 +73,7 @@ public class PerkLeap extends Perk
if (event.getPlayer().getItemInHand() == null) if (event.getPlayer().getItemInHand() == null)
return; return;
if (!event.getPlayer().getItemInHand().getType().toString().contains("_AXE")) if (!UtilItem.isAxe(event.getPlayer().getItemInHand()))
return; return;
Player player = event.getPlayer(); Player player = event.getPlayer();
@ -94,7 +95,7 @@ public class PerkLeap extends Perk
} }
//Energy //Energy
if (!Recharge.Instance.use(player, _name, _recharge, true, true)) if (!Recharge.Instance.use(player, _name, _recharge, false, true))
return; return;
//Use Use //Use Use