PC-516
When out of leaps in dragon escape there is no longer the "You can now use Leap" message.
This commit is contained in:
parent
cbca7e9f7e
commit
35b00679e0
@ -13,6 +13,7 @@ import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.NautHashMap;
|
||||
import mineplex.core.common.util.UtilAction;
|
||||
import mineplex.core.common.util.UtilBlock;
|
||||
import mineplex.core.common.util.UtilItem;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
@ -72,7 +73,7 @@ public class PerkLeap extends Perk
|
||||
if (event.getPlayer().getItemInHand() == null)
|
||||
return;
|
||||
|
||||
if (!event.getPlayer().getItemInHand().getType().toString().contains("_AXE"))
|
||||
if (!UtilItem.isAxe(event.getPlayer().getItemInHand()))
|
||||
return;
|
||||
|
||||
Player player = event.getPlayer();
|
||||
@ -94,7 +95,7 @@ public class PerkLeap extends Perk
|
||||
}
|
||||
|
||||
//Energy
|
||||
if (!Recharge.Instance.use(player, _name, _recharge, true, true))
|
||||
if (!Recharge.Instance.use(player, _name, _recharge, false, true))
|
||||
return;
|
||||
|
||||
//Use Use
|
||||
|
Loading…
Reference in New Issue
Block a user