diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/custom/CustomEnchantLookup.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/custom/CustomEnchantLookup.java index 04ad7c4a..55e8f1e1 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/custom/CustomEnchantLookup.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/custom/CustomEnchantLookup.java @@ -20,7 +20,6 @@ import java.util.Set; import java.util.UUID; import java.util.WeakHashMap; import java.util.function.Function; -import java.util.stream.Collectors; public class CustomEnchantLookup { /** diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Farmhand.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Farmhand.java index 85c8676b..cfa975ff 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Farmhand.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Farmhand.java @@ -97,7 +97,7 @@ public class Farmhand extends EcoEnchant { block.setType(Material.FARMLAND); if (this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "per-block-damage")) { - DurabilityUtils.damageItem(player, player.getInventory().getItemInMainHand(), 1, player.getInventory().getHeldItemSlot()); + DurabilityUtils.damageItem(player, player.getInventory().getItemInMainHand(), 1); } } }