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:
kamcio96 2015-11-18 10:02:28 +01:00 committed by md_5
parent 19f2e7b13e
commit b6e26e0c09

View File

@ -22,8 +22,6 @@ public final class NativeCode<T>
this.name = name;
this.javaImpl = javaImpl;
this.nativeImpl = nativeImpl;
load();
}
public T newInstance()