Remove early static initializer call

Weird NoClassDefFoundError going on
This commit is contained in:
Nassim Jahnke 2023-05-18 11:53:34 +02:00
parent 98a0fdca94
commit a70034e0b5
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
2 changed files with 0 additions and 8 deletions

View File

@ -80,11 +80,6 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform<Player>
// Config magic
conf = new BukkitViaConfig();
// Load a bunch of classes early with slow reflection and more classloading
if (conf.shouldRegisterUserConnectionOnJoin()) {
Via.getManager().getScheduler().execute(JoinListener::init);
}
}
@Override

View File

@ -62,9 +62,6 @@ public class JoinListener implements Listener {
CHANNEL = channelField;
}
public static void init() {
}
// Loosely search a field with any name, as long as it matches a type name.
private static Field findField(Class<?> clazz, String... types) throws NoSuchFieldException {
for (Field field : clazz.getDeclaredFields()) {