2
0
Эх сурвалжийг харах

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

GJ 13 жил өмнө
parent
commit
b878d29386

+ 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) {
     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);