mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
removed now unused config and moved for more some fields on default config.
This commit is contained in:
parent
5bc1d8b737
commit
b5a2ae67fd
2 changed files with 8 additions and 31 deletions
|
|
@ -11,8 +11,6 @@ object ConfigOptions {
|
|||
|
||||
// Path for default enchantment limits
|
||||
private const val DEFAULT_LIMIT_PATH = "default_limit"
|
||||
// Path for allowing unsafe enchants
|
||||
private const val ALLOW_UNSAFE_PATH = "allow_unsafe"
|
||||
// Path for limiting repair cost
|
||||
private const val LIMIT_REPAIR_COST = "limit_repair_cost"
|
||||
// Path for repair value limit
|
||||
|
|
@ -35,8 +33,6 @@ object ConfigOptions {
|
|||
|
||||
// Default value for enchantment limits
|
||||
private const val DEFAULT_ENCHANT_LIMIT = 5
|
||||
// Default value for allowing unsafe enchantments
|
||||
private const val DEFAULT_ALLOW_UNSAFE = true
|
||||
// Default value for limiting repair cost
|
||||
private const val DEFAULT_LIMIT_REPAIR = true
|
||||
// Default value for repair cost limit
|
||||
|
|
@ -70,16 +66,6 @@ object ConfigOptions {
|
|||
.getInt(DEFAULT_LIMIT_PATH, DEFAULT_ENCHANT_LIMIT)
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to allow unsafe enchantments
|
||||
*/
|
||||
val allowUnsafe: Boolean
|
||||
get() {
|
||||
return UnsafeEnchants.instance
|
||||
.config
|
||||
.getBoolean(ALLOW_UNSAFE_PATH, DEFAULT_ALLOW_UNSAFE)
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to limit repair costs to the vanilla limit
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue