Load NativeCode manually, not in constructor.
Bungee will call load method from main thread https://github.com/SpigotMC/BungeeCord/blob/master/proxy/src/main/java/net/md_5/bungee/BungeeCord.java#L202
This commit is contained in:
parent
19f2e7b13e
commit
b6e26e0c09
@ -22,8 +22,6 @@ public final class NativeCode<T>
|
||||
this.name = name;
|
||||
this.javaImpl = javaImpl;
|
||||
this.nativeImpl = nativeImpl;
|
||||
|
||||
load();
|
||||
}
|
||||
|
||||
public T newInstance()
|
||||
|
Loading…
Reference in New Issue
Block a user