From f2bd9ba393d66592e0510879fd533ccb0f05f55e Mon Sep 17 00:00:00 2001 From: "Josiah (Gaming32) Glosson" Date: Sun, 12 May 2024 14:11:36 -0500 Subject: [PATCH] We don't have commons-lang3 3.13.0+ --- src/main/java/io/github/gaming32/worldhost/WorldHost.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/gaming32/worldhost/WorldHost.java b/src/main/java/io/github/gaming32/worldhost/WorldHost.java index 3bb44e3..5755d41 100644 --- a/src/main/java/io/github/gaming32/worldhost/WorldHost.java +++ b/src/main/java/io/github/gaming32/worldhost/WorldHost.java @@ -42,7 +42,6 @@ import net.minecraft.server.network.ServerConnectionListener; import net.minecraft.server.players.GameProfileCache; import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.exception.UncheckedReflectiveOperationException; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.utils.URIBuilder; import org.apache.http.impl.client.CloseableHttpClient; @@ -875,7 +874,8 @@ public static ChannelInitializer createChannelInitializer(ServerConnect try { return channelInitializerConstructor.newInstance(listener); } catch (ReflectiveOperationException e) { - throw new UncheckedReflectiveOperationException(e); + // TODO: UncheckedReflectiveOperationException when 1.20.4+ becomes the minimum + throw new RuntimeException(e); } }