mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 02:49:22 +00:00
Updated libreforge
This commit is contained in:
@@ -62,7 +62,7 @@ allprojects {
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.34.0'
|
||||
implementation 'com.willfp:libreforge:3.39.0'
|
||||
implementation 'com.willfp:libreforge:3.40.1'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
|
||||
|
||||
@@ -6,12 +6,14 @@ import com.willfp.eco.core.display.DisplayPriority
|
||||
import com.willfp.eco.core.fast.FastItemStack
|
||||
import com.willfp.ecoarmor.sets.ArmorSlot
|
||||
import com.willfp.ecoarmor.sets.ArmorUtils
|
||||
import org.bukkit.entity.Player
|
||||
import org.bukkit.inventory.ItemStack
|
||||
import org.bukkit.inventory.meta.LeatherArmorMeta
|
||||
|
||||
class ArmorDisplay(plugin: EcoPlugin) : DisplayModule(plugin, DisplayPriority.LOWEST) {
|
||||
override fun display(
|
||||
itemStack: ItemStack,
|
||||
player: Player?,
|
||||
vararg args: Any
|
||||
) {
|
||||
val meta = itemStack.itemMeta ?: return
|
||||
@@ -59,6 +61,17 @@ class ArmorDisplay(plugin: EcoPlugin) : DisplayModule(plugin, DisplayPriority.LO
|
||||
lore.addAll(fis.lore)
|
||||
}
|
||||
|
||||
if (player != null) {
|
||||
lore.add("")
|
||||
lore.addAll(
|
||||
if (ArmorUtils.isAdvanced(meta)) {
|
||||
set.advancedHolder.getNotMetLines(player)
|
||||
} else {
|
||||
set.regularHolder.getNotMetLines(player)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
if (this.plugin.configYml.getBool("update-item-names")) {
|
||||
meta.setDisplayName(slotMeta.displayName)
|
||||
}
|
||||
|
||||
@@ -332,5 +332,5 @@ class ArmorSet(
|
||||
class SimpleHolder(
|
||||
override val conditions: Set<ConfiguredCondition>,
|
||||
override val effects: Set<ConfiguredEffect>,
|
||||
override val id: String?
|
||||
) : Holder
|
||||
override val id: String
|
||||
) : Holder
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = 7.55.0
|
||||
version = 7.56.0
|
||||
plugin-name = EcoArmor
|
||||
Reference in New Issue
Block a user