From b878d293865b089117e50a90a8cfc2658bd9fc18 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 22 Mar 2012 09:46:46 -0400 Subject: [PATCH] Must have only 1 stave in hand for it to work - no stacks. --- src/main/java/com/gmail/nossr50/skills/Staves.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/Staves.java b/src/main/java/com/gmail/nossr50/skills/Staves.java index f9bd6a488..fabb0c596 100644 --- a/src/main/java/com/gmail/nossr50/skills/Staves.java +++ b/src/main/java/com/gmail/nossr50/skills/Staves.java @@ -61,6 +61,10 @@ public class Staves { public static void altFire(Material type, Player attacker, mcMMO plugin) { Projectile projectile; + if (attacker.getItemInHand().getAmount() > 1) { + return; + } + switch (type) { case BLAZE_ROD: projectile = attacker.launchProjectile(Fireball.class);