mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Updated libreforge
This commit is contained in:
parent
585a012880
commit
91ff9c4394
@ -3,6 +3,6 @@ version rootProject.version
|
||||
|
||||
subprojects {
|
||||
dependencies {
|
||||
implementation 'com.willfp:libreforge:3.39.0'
|
||||
implementation 'com.willfp:libreforge:3.40.0'
|
||||
}
|
||||
}
|
@ -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));
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
version = 8.62.0
|
||||
version = 8.63.0
|
||||
plugin-name = EcoEnchants
|
Loading…
Reference in New Issue
Block a user