mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Removed FoundEcoEnchantLevel
This commit is contained in:
parent
9a41250b35
commit
5c422ac240
@ -17,7 +17,6 @@ import com.willfp.ecoenchants.display.EnchantSorter
|
||||
import com.willfp.ecoenchants.enchant.EcoEnchantLevel
|
||||
import com.willfp.ecoenchants.enchant.EcoEnchants
|
||||
import com.willfp.ecoenchants.enchant.EnchantGUI
|
||||
import com.willfp.ecoenchants.enchant.FoundEcoEnchantLevel
|
||||
import com.willfp.ecoenchants.enchant.LoreConversion
|
||||
import com.willfp.ecoenchants.enchant.legacyRegisterVanillaEnchantmentData
|
||||
import com.willfp.ecoenchants.enchant.registration.EnchantmentRegisterer
|
||||
@ -81,13 +80,6 @@ class EcoEnchantsPlugin : LibreforgePlugin() {
|
||||
it.clearEnchantmentCache()
|
||||
}
|
||||
|
||||
registerHolderPlaceholderProvider<FoundEcoEnchantLevel> { it, _ ->
|
||||
listOf(
|
||||
NamedValue("level", it.level.level),
|
||||
NamedValue("active_level", it.activeLevel)
|
||||
)
|
||||
}
|
||||
|
||||
registerHolderPlaceholderProvider<EcoEnchantLevel> { it, _ ->
|
||||
listOf(
|
||||
NamedValue("level", it.level),
|
||||
|
@ -31,12 +31,3 @@ class EcoEnchantLevel(
|
||||
return Objects.hash(this.id)
|
||||
}
|
||||
}
|
||||
|
||||
data class FoundEcoEnchantLevel(
|
||||
val level: EcoEnchantLevel,
|
||||
val activeLevel: Int
|
||||
): Holder {
|
||||
override val effects = level.effects
|
||||
override val conditions = level.conditions
|
||||
override val id = level.id
|
||||
}
|
||||
|
@ -167,9 +167,3 @@ enchant-gui:
|
||||
lore-conversion:
|
||||
enabled: false # If lore conversion should be enabled
|
||||
aggressive: false # Will convert all items in all inventories when opened, likely to use a lot of performance
|
||||
|
||||
# Extra placeholders for enchantment configs
|
||||
extra-placeholders:
|
||||
# Enable or disable %active_level% placeholder.
|
||||
# It's disabled by default to save CPU time, enable if you want to use it.
|
||||
active-level: false
|
Loading…
Reference in New Issue
Block a user