mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Must have only 1 stave in hand for it to work - no stacks.
This commit is contained in:
parent
6c70f9e677
commit
b878d29386
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user