mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Merge pull request #298
Add an option to disable display module completely
This commit is contained in:
commit
2b1c77483f
@ -80,7 +80,10 @@ class EcoEnchantsPlugin : LibReforgePlugin() {
|
||||
)
|
||||
}
|
||||
|
||||
override fun createDisplayModule(): DisplayModule {
|
||||
override fun createDisplayModule(): DisplayModule? {
|
||||
if (configYml.getBoolOrNull("display.enabled") == false) {
|
||||
return null
|
||||
}
|
||||
return EnchantDisplay(this)
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,8 @@ anvil:
|
||||
|
||||
# Options for how enchantments are displayed on items
|
||||
display:
|
||||
enabled: true # Setting this to false will disable all visual item modifications
|
||||
|
||||
numerals:
|
||||
enabled: true # If numerals should be used for the enchantment levels
|
||||
threshold: 10 # Above this, numbers will be used instead of numerals
|
||||
|
Loading…
Reference in New Issue
Block a user