Updated eco

This commit is contained in:
Auxilor 2024-07-20 16:25:23 +01:00
parent 4cb60c49b9
commit 35260fd9a1
2 changed files with 8 additions and 4 deletions

View File

@ -51,7 +51,7 @@ allprojects {
} }
dependencies { dependencies {
compileOnly("com.willfp:eco:6.71.0") compileOnly("com.willfp:eco:6.73.0")
compileOnly("org.jetbrains:annotations:23.0.0") compileOnly("org.jetbrains:annotations:23.0.0")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.9.20") compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.9.20")
compileOnly("com.github.ben-manes.caffeine:caffeine:3.1.5") compileOnly("com.github.ben-manes.caffeine:caffeine:3.1.5")

View File

@ -142,9 +142,13 @@ class EcoEnchantsPlugin : LibreforgePlugin() {
) )
} }
override fun createDisplayModule(): DisplayModule? { override fun loadDisplayModules(): List<DisplayModule> {
return if (configYml.getBool("display.enabled")) { if (!this.configYml.getBool("display.enabled")) {
return emptyList()
}
return listOf(
EnchantDisplay(this) EnchantDisplay(this)
} else null )
} }
} }