Updated libreforge

This commit is contained in:
Auxilor 2022-05-08 16:07:51 +01:00
parent 585a012880
commit 91ff9c4394
3 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,6 @@ version rootProject.version
subprojects {
dependencies {
implementation 'com.willfp:libreforge:3.39.0'
implementation 'com.willfp:libreforge:3.40.0'
}
}

View File

@ -9,6 +9,7 @@ import com.willfp.eco.core.fast.FastItemStack;
import com.willfp.eco.util.StringUtils;
import com.willfp.ecoenchants.display.options.DisplayOptions;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.custom.CustomEcoEnchant;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentTarget;
import com.willfp.ecoenchants.enchantments.util.ItemConversionOptions;
import lombok.Getter;
@ -142,6 +143,10 @@ public class EnchantDisplay extends DisplayModule {
}
if (player != null && enchantment instanceof EcoEnchant ecoEnchant) {
if (ecoEnchant instanceof CustomEcoEnchant custom) {
requirementLore.addAll(custom.getLevel(level).getNotMetLines(player));
}
if (!ecoEnchant.areRequirementsMet(player)) {
requirementLore.addAll(StringUtils.formatList(EnchantmentCache.getEntry(enchantment).getRequirementLore(), player));
}

View File

@ -1,2 +1,2 @@
version = 8.62.0
version = 8.63.0
plugin-name = EcoEnchants