Fixed performance issue

This commit is contained in:
Auxilor 2023-01-22 16:43:59 +00:00
parent c61058a8dd
commit ccd7b5cc27
3 changed files with 4 additions and 9 deletions

View File

@ -46,7 +46,7 @@ allprojects {
dependencies {
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'
compileOnly 'org.jetbrains:annotations:23.0.0'

View File

@ -80,14 +80,9 @@ class EnchantDisplay(private val plugin: EcoEnchantsPlugin) : DisplayModule(plug
val enchantNotMetLines = enchantLevel.getNotMetLines(player).map { Display.PREFIX + it }
notMetLines.addAll(enchantNotMetLines)
if (enchantNotMetLines.isNotEmpty()) {
showNotMet = true
}
if (!showNotMet && !enchantLevel.conditions.isMet(player)) { // I know it's slow! I'll fix it.
if (enchantLevel.conditions.any { it.notMetEffects.isNotEmpty() }) {
showNotMet = true
}
if (enchantNotMetLines.isNotEmpty() || enchantLevel.showAnyNotMet(player)) {
showNotMet = true
}
}

View File

@ -1,4 +1,4 @@
#libreforge-updater
#Tue Jan 17 16:49:41 GMT 2023
version=9.15.6
version=9.15.7
plugin-name=EcoEnchants