Cleanup + Clarification

This commit is contained in:
Auxilor
2022-10-05 08:40:47 +01:00
parent 5e56d6ad45
commit e8c2b637ef
2 changed files with 4 additions and 5 deletions

View File

@@ -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 {

View File

@@ -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