From bf96acfea28cb6e31e4e96ea5526f308e157ef85 Mon Sep 17 00:00:00 2001 From: "Josiah (Gaming32) Glosson" Date: Wed, 29 May 2024 23:23:45 -0500 Subject: [PATCH] Fix IllegalAccessException --- .../worldhost/mixin/MixinServerConnectionListener_1.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/gaming32/worldhost/mixin/MixinServerConnectionListener_1.java b/src/main/java/io/github/gaming32/worldhost/mixin/MixinServerConnectionListener_1.java index ba5b932..7a1dfab 100644 --- a/src/main/java/io/github/gaming32/worldhost/mixin/MixinServerConnectionListener_1.java +++ b/src/main/java/io/github/gaming32/worldhost/mixin/MixinServerConnectionListener_1.java @@ -15,6 +15,7 @@ public abstract class MixinServerConnectionListener_1 extends ChannelInitializer private void storeClass(ServerConnectionListener this$0, CallbackInfo ci) throws NoSuchMethodException { if (WorldHost.channelInitializerConstructor == null) { WorldHost.channelInitializerConstructor = getClass().getDeclaredConstructor(ServerConnectionListener.class); + WorldHost.channelInitializerConstructor.setAccessible(true); } } }