Skip to content

Commit

Permalink
Update Loader.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
EnchantedHay authored Dec 4, 2024
1 parent 6d13725 commit cd9ee67
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ object Loader {
Channel.channels.clear()

filterChannelFiles(folder).forEach {
if (FileWatcher.INSTANCE.hasListener(it)) {
loadChannel(it)
} else {
FileWatcher.INSTANCE.removeListener(it)
FileWatcher.INSTANCE.addSimpleListener(it, { loadChannel(it) }, true)
}
}

TrChatReloadEvent.Channel(Channel.channels).call()
Expand Down Expand Up @@ -264,4 +261,4 @@ object Loader {

private fun Map<Property, String>.getCondition() = this[Property.CONDITION]?.toCondition()

}
}

0 comments on commit cd9ee67

Please sign in to comment.