diff --git a/build.gradle.kts b/build.gradle.kts index 4fea475d..7f1e139b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,7 +51,7 @@ allprojects { } 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.kotlin:kotlin-stdlib:1.9.20") compileOnly("com.github.ben-manes.caffeine:caffeine:3.1.5") diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt index afb9430a..f4cabb5b 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt @@ -142,9 +142,13 @@ class EcoEnchantsPlugin : LibreforgePlugin() { ) } - override fun createDisplayModule(): DisplayModule? { - return if (configYml.getBool("display.enabled")) { + override fun loadDisplayModules(): List { + if (!this.configYml.getBool("display.enabled")) { + return emptyList() + } + + return listOf( EnchantDisplay(this) - } else null + ) } }