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 03ae5090..f8945508 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 @@ -81,10 +81,9 @@ class EcoEnchantsPlugin : LibReforgePlugin() { } override fun createDisplayModule(): DisplayModule? { - if (configYml.getBoolOrNull("display.enabled") == false) { - return null - } - return EnchantDisplay(this) + return if (configYml.getBool("display.enabled")) { + EnchantDisplay(this) + } else null } companion object { diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index 62e0dff1..73d172ac 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -31,7 +31,7 @@ anvil: # Options for how enchantments are displayed on items display: - enabled: true # Setting this to false will disable all visual item modifications + enabled: true # If you disable display, enchantments will not show up on items. Only disable if you are handling display elsewhere. numerals: enabled: true # If numerals should be used for the enchantment levels