From 35260fd9a1d53a51a98882a0225d20d363b0c097 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 20 Jul 2024 16:25:23 +0100 Subject: [PATCH] Updated eco --- build.gradle.kts | 2 +- .../kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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 + ) } }