Fixed firewand

This commit is contained in:
Auxilor 2020-11-20 18:10:09 +00:00
parent a66637d2ec
commit a67b2cdcbc
3 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package com.willfp.ecoenchants.firewand;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.itemtypes.Spell;
import com.willfp.ecoenchants.util.Logger;
import org.bukkit.entity.Fireball;
import org.bukkit.entity.Player;
import org.bukkit.entity.WitherSkull;

View File

@ -20,7 +20,7 @@ general-config:
maximum-level: 3
config:
activation-sound: ENTITY_WITHER_SHOOT
activation-sound: ENTITY_GHAST_SHOOT
cooldown: 60 # In seconds
velocity: 3
damage-per-level: 8

View File

@ -7,6 +7,7 @@ import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.SpellRunnable;
import com.willfp.ecoenchants.util.Logger;
import com.willfp.ecoenchants.util.optional.Prerequisite;
import org.bukkit.Bukkit;
import org.bukkit.Material;
@ -59,7 +60,7 @@ public abstract class Spell extends EcoEnchant {
if(!(event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)))
return;
} else {
if(!(event.getAction().equals(Action.LEFT_CLICK_BLOCK) || event.getAction().equals(Action.LEFT_CLICK_BLOCK)))
if(!(event.getAction().equals(Action.LEFT_CLICK_AIR) || event.getAction().equals(Action.LEFT_CLICK_BLOCK)))
return;
}