Removed FoundEcoEnchantLevel

This commit is contained in:
Will FP 2023-12-27 15:32:16 +01:00
parent 9a41250b35
commit 5c422ac240
3 changed files with 0 additions and 23 deletions

View File

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

View File

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

View File

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