add left item enchantment cost toggle
Some checks are pending
Java CI with Gradle / build (push) Waiting to run

This commit is contained in:
alexcrea 2026-06-29 13:08:50 +02:00
parent 965ee33325
commit 7ea708ec14
Signed by: alexcrea
GPG key ID: E346CD16413450E3
4 changed files with 43 additions and 7 deletions

View file

@ -75,6 +75,8 @@ object ConfigOptions {
const val DISABLE_MERGE_OVER_ROOT = "disable-merge-over"
const val IMMUTABLE_ENCHANTMENT_LIST = "immutable_enchantments"
const val INCLUDE_LEFT_ENCHANTMENT_FOR_COST = "include_left_enchantment_for_cost"
// Monetary configs
const val MONETARY_USAGE_ROOT = "monetary_cost"
@ -110,6 +112,8 @@ object ConfigOptions {
const val DEFAULT_ENCHANT_COUNT_LIMIT = -1
const val DEFAULT_INCLUDE_LEFT_ENCHANTMENT_FOR_COST = false
// Color related config
const val DEFAULT_ALLOW_COLOR_CODE = false
const val DEFAULT_ALLOW_HEXADECIMAL_COLOR = false
@ -434,6 +438,13 @@ object ConfigOptions {
?: DEFAULT_ENCHANT_COUNT_LIMIT
}
val includeLeftEnchantmentForCost: Boolean
get() {
return ConfigHolder.DEFAULT_CONFIG
.config
.getBoolean(INCLUDE_LEFT_ENCHANTMENT_FOR_COST, DEFAULT_INCLUDE_LEFT_ENCHANTMENT_FOR_COST)
}
/**
* Whether to show debug logging
*/