aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/repopatterns
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-08 13:33:35 +1000
committerGitHub <noreply@github.com>2024-06-08 13:33:35 +1000
commit5b3ee9de1856d9989e20cc4d534cac17089ce0e5 (patch)
tree6186c64e1f7d59c2dd04b7ffb05925609811895a /src/main/java/at/hannibal2/skyhanni/utils/repopatterns
parentaaca5f08d47732b3db5329a3a9404281b21d2f55 (diff)
downloadskyhanni-5b3ee9de1856d9989e20cc4d534cac17089ce0e5.tar.gz
skyhanni-5b3ee9de1856d9989e20cc4d534cac17089ce0e5.tar.bz2
skyhanni-5b3ee9de1856d9989e20cc4d534cac17089ce0e5.zip
Backend: Start using new event system (#2023)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/repopatterns')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
index cc17fa17f..d52f8ccb4 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
@@ -1,12 +1,13 @@
package at.hannibal2.skyhanni.utils.repopatterns
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.api.event.HandleEvent
import at.hannibal2.skyhanni.config.ConfigManager
import at.hannibal2.skyhanni.config.features.dev.RepoPatternConfig
import at.hannibal2.skyhanni.events.ConfigLoadEvent
import at.hannibal2.skyhanni.events.LorenzEvent
-import at.hannibal2.skyhanni.events.PreInitFinishedEvent
import at.hannibal2.skyhanni.events.RepositoryReloadEvent
+import at.hannibal2.skyhanni.events.utils.PreInitFinishedEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ConditionalUtils.afterChange
@@ -249,7 +250,7 @@ object RepoPatternManager {
file.writeText(data)
}
- @SubscribeEvent
+ @HandleEvent
fun onPreInitFinished(event: PreInitFinishedEvent) {
wasPreinitialized = true
val dumpDirective = System.getenv("SKYHANNI_DUMP_REGEXES")