diff --git a/Extensions/Firewand/src/main/java/com/willfp/ecoenchants/firewand/Firewand.java b/Extensions/Firewand/src/main/java/com/willfp/ecoenchants/firewand/Firewand.java index 405a78e0..6fdec6e1 100644 --- a/Extensions/Firewand/src/main/java/com/willfp/ecoenchants/firewand/Firewand.java +++ b/Extensions/Firewand/src/main/java/com/willfp/ecoenchants/firewand/Firewand.java @@ -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; diff --git a/Extensions/Firewand/src/main/resources/enchants/spell/firewand.yml b/Extensions/Firewand/src/main/resources/enchants/spell/firewand.yml index 4a83a6b1..35299020 100644 --- a/Extensions/Firewand/src/main/resources/enchants/spell/firewand.yml +++ b/Extensions/Firewand/src/main/resources/enchants/spell/firewand.yml @@ -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 diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java index e9b21b86..185733a0 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java @@ -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; }