Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Remove early static initializer call
Weird NoClassDefFoundError going on
Dieser Commit ist enthalten in:
Ursprung
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()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren