From d0345f39230e4f07f061b6c82a381c863e9787d8 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Tue, 7 May 2024 22:43:17 +0200 Subject: Feature: Tunnels maps (#1546) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/events/LorenzWarpEvent.kt | 3 +++ src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/main/java/at/hannibal2/skyhanni/events/LorenzWarpEvent.kt (limited to 'src/main/java/at/hannibal2/skyhanni/events') 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 getConstant(constant: String, type: Type? = null): T = try { + inline fun 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) -- cgit