Fixed 2 more minor migration bugs

This commit is contained in:
Auxilor 2022-02-18 11:26:55 +00:00
parent 9248682ff6
commit 45bac32c88
2 changed files with 1 additions and 2 deletions

View File

@ -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 {
/**

View File

@ -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);
}
}
}