diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-05-07 22:43:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 22:43:17 +0200 |
commit | d0345f39230e4f07f061b6c82a381c863e9787d8 (patch) | |
tree | beaf9d162d1ee0b891fefefeb1fb4815d9adb89b /src/main/java/at/hannibal2/skyhanni/events | |
parent | 912c8d8a8c9ad412b2f94827e09a9cf262e5b69a (diff) | |
download | skyhanni-d0345f39230e4f07f061b6c82a381c863e9787d8.tar.gz skyhanni-d0345f39230e4f07f061b6c82a381c863e9787d8.tar.bz2 skyhanni-d0345f39230e4f07f061b6c82a381c863e9787d8.zip |
Feature: Tunnels maps (#1546)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/LorenzWarpEvent.kt | 3 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzWarpEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzWarpEvent.kt new file mode 100644 index 000000000..170dcabe9 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzWarpEvent.kt @@ -0,0 +1,3 @@ +package at.hannibal2.skyhanni.events + +class LorenzWarpEvent : LorenzEvent() diff --git a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt index 3b2b426fe..fc006b049 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt @@ -9,7 +9,7 @@ import java.lang.reflect.Type class RepositoryReloadEvent(val repoLocation: File, val gson: Gson) : LorenzEvent() { - inline fun <reified T : Any> getConstant(constant: String, type: Type? = null): T = try { + inline fun <reified T : Any> getConstant(constant: String, type: Type? = null, gson: Gson = this.gson): T = try { RepoManager.setlastConstant(constant) if (!repoLocation.exists()) throw RepoError("Repo folder does not exist!") RepoUtils.getConstant(repoLocation, constant, gson, T::class.java, type) |