diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/InfernalTouch.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/InfernalTouch.java index 150a6df1..d890b3bb 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/InfernalTouch.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/InfernalTouch.java @@ -4,6 +4,7 @@ import com.willfp.eco.util.drops.DropQueue; import com.willfp.eco.util.integrations.antigrief.AntigriefManager; import com.willfp.eco.util.tuplets.Pair; import com.willfp.ecoenchants.enchantments.EcoEnchant; +import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import org.bukkit.Bukkit; @@ -65,6 +66,7 @@ public class InfernalTouch extends EcoEnchant { } return toReturn; } + @EventHandler public void infernalTouchBreak(@NotNull final BlockDropItemEvent event) { Player player = event.getPlayer(); @@ -116,6 +118,10 @@ public class InfernalTouch extends EcoEnchant { event.getItems().clear(); + if (!this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "drop-xp")) { + experience = 0; + } + new DropQueue(player) .setLocation(block.getLocation()) .addItems(drops) diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/infernaltouch.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/infernaltouch.yml index b96f043a..e5346a4a 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/infernaltouch.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/infernaltouch.yml @@ -22,4 +22,4 @@ general-config: - stone_switcher config: - # No config is available for this enchantment \ No newline at end of file + drop-xp: true # If experience should be given \ No newline at end of file