Browse Source

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

GJ 13 years ago
parent
commit
b878d29386
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/java/com/gmail/nossr50/skills/Staves.java

+ 4 - 0
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);