aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-11 17:49:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-11 17:49:56 +0100
commit3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3 (patch)
treeb395d5cddd3c2203823a29456976de1584741b6c /src/main/java
parent0ede153cd987591df391432c3e7de344b2e5ffba (diff)
downloadskyhanni-3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3.tar.gz
skyhanni-3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3.tar.bz2
skyhanni-3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3.zip
prepare for the future
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
index d55f8f911..bec3af2f1 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
@@ -27,6 +27,7 @@ import net.minecraft.launchwrapper.Launch
import net.minecraft.util.ChatComponentText
import net.minecraftforge.fml.common.FMLCommonHandler
import java.awt.Color
+import java.lang.reflect.Constructor
import java.lang.reflect.Field
import java.lang.reflect.Modifier
import java.text.DecimalFormat
@@ -578,6 +579,8 @@ object LorenzUtils {
fun Field.makeAccessible() = also { isAccessible = true }
+ fun <T> Constructor<T>.makeAccessible() = also { isAccessible = true }
+
// Taken and modified from Skytils
@JvmStatic
fun <T> T.equalsOneOf(vararg other: T): Boolean {