diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-05-24 17:37:44 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 09:37:44 +0200 |
| commit | 17ac70d7cd8416324acfffcde656930b4e9ae612 (patch) | |
| tree | 97774ea6f112879386bf69df4830a4091f3cd13b /src/main/java/at/hannibal2/skyhanni/events | |
| parent | 2a036647d4a06d8d1c5bcbfe9437c4def1aa7eee (diff) | |
| download | skyhanni-17ac70d7cd8416324acfffcde656930b4e9ae612.tar.gz skyhanni-17ac70d7cd8416324acfffcde656930b4e9ae612.tar.bz2 skyhanni-17ac70d7cd8416324acfffcde656930b4e9ae612.zip | |
Add: Ability to switch repo branch (#1835)
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/RepositoryReloadEvent.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt index fc006b049..ec5b0a8ec 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt @@ -10,7 +10,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, gson: Gson = this.gson): T = try { - RepoManager.setlastConstant(constant) + RepoManager.setLastConstant(constant) if (!repoLocation.exists()) throw RepoError("Repo folder does not exist!") RepoUtils.getConstant(repoLocation, constant, gson, T::class.java, type) } catch (e: Exception) { |
