Must have only 1 stave in hand for it to work - no stacks.

This commit is contained in:
GJ 2012-03-22 09:46:46 -04:00
parent 6c70f9e677
commit b878d29386

View File

@ -61,6 +61,10 @@ public class Staves {
public static void altFire(Material type, Player attacker, mcMMO plugin) { public static void altFire(Material type, Player attacker, mcMMO plugin) {
Projectile projectile; Projectile projectile;
if (attacker.getItemInHand().getAmount() > 1) {
return;
}
switch (type) { switch (type) {
case BLAZE_ROD: case BLAZE_ROD:
projectile = attacker.launchProjectile(Fireball.class); projectile = attacker.launchProjectile(Fireball.class);