mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Fixed performance issue
This commit is contained in:
parent
c61058a8dd
commit
ccd7b5cc27
@ -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'
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user