mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 11:35:18 +01:00
Remove early static initializer call
Weird NoClassDefFoundError going on
This commit is contained in:
parent
98a0fdca94
commit
a70034e0b5
@ -80,11 +80,6 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform<Player>
|
|||||||
|
|
||||||
// Config magic
|
// Config magic
|
||||||
conf = new BukkitViaConfig();
|
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
|
@Override
|
||||||
|
@ -62,9 +62,6 @@ public class JoinListener implements Listener {
|
|||||||
CHANNEL = channelField;
|
CHANNEL = channelField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void init() {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Loosely search a field with any name, as long as it matches a type name.
|
// 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 {
|
private static Field findField(Class<?> clazz, String... types) throws NoSuchFieldException {
|
||||||
for (Field field : clazz.getDeclaredFields()) {
|
for (Field field : clazz.getDeclaredFields()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user