mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed performance issue
This commit is contained in:
parent
c61058a8dd
commit
ccd7b5cc27
@ -46,7 +46,7 @@ allprojects {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.willfp:eco:6.44.0'
|
compileOnly 'com.willfp:eco:6.44.0'
|
||||||
implementation 'com.willfp:libreforge:3.127.3'
|
implementation 'com.willfp:libreforge:3.127.4'
|
||||||
implementation 'org.joml:joml:1.10.4'
|
implementation 'org.joml:joml:1.10.4'
|
||||||
|
|
||||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||||
|
@ -80,16 +80,11 @@ class EnchantDisplay(private val plugin: EcoEnchantsPlugin) : DisplayModule(plug
|
|||||||
|
|
||||||
val enchantNotMetLines = enchantLevel.getNotMetLines(player).map { Display.PREFIX + it }
|
val enchantNotMetLines = enchantLevel.getNotMetLines(player).map { Display.PREFIX + it }
|
||||||
notMetLines.addAll(enchantNotMetLines)
|
notMetLines.addAll(enchantNotMetLines)
|
||||||
if (enchantNotMetLines.isNotEmpty()) {
|
|
||||||
showNotMet = true
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!showNotMet && !enchantLevel.conditions.isMet(player)) { // I know it's slow! I'll fix it.
|
if (enchantNotMetLines.isNotEmpty() || enchantLevel.showAnyNotMet(player)) {
|
||||||
if (enchantLevel.conditions.any { it.notMetEffects.isNotEmpty() }) {
|
|
||||||
showNotMet = true
|
showNotMet = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
formattedNames[DisplayableEnchant(enchant.wrap(), level)] =
|
formattedNames[DisplayableEnchant(enchant.wrap(), level)] =
|
||||||
enchant.wrap().getFormattedName(level, showNotMet = showNotMet)
|
enchant.wrap().getFormattedName(level, showNotMet = showNotMet)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#libreforge-updater
|
#libreforge-updater
|
||||||
#Tue Jan 17 16:49:41 GMT 2023
|
#Tue Jan 17 16:49:41 GMT 2023
|
||||||
version=9.15.6
|
version=9.15.7
|
||||||
plugin-name=EcoEnchants
|
plugin-name=EcoEnchants
|
||||||
|
Loading…
Reference in New Issue
Block a user