Fixed more placeholder injection stuff
This commit is contained in:
@@ -209,6 +209,7 @@ open class EcoJSONConfigWrapper : JSONConfig {
|
||||
}
|
||||
|
||||
override fun injectPlaceholders(placeholders: Iterable<StaticPlaceholder>) {
|
||||
injections.removeIf { placeholders.any { placeholder -> it.identifier == placeholder.identifier } }
|
||||
injections.addAll(placeholders)
|
||||
}
|
||||
|
||||
|
||||
@@ -228,6 +228,7 @@ open class EcoYamlConfigWrapper<T : ConfigurationSection> : Config {
|
||||
}
|
||||
|
||||
override fun injectPlaceholders(placeholders: Iterable<StaticPlaceholder>) {
|
||||
injections.removeIf { placeholders.any { placeholder -> it.identifier == placeholder.identifier } }
|
||||
injections.addAll(placeholders)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user