mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
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.name = name;
|
||||||
this.javaImpl = javaImpl;
|
this.javaImpl = javaImpl;
|
||||||
this.nativeImpl = nativeImpl;
|
this.nativeImpl = nativeImpl;
|
||||||
|
|
||||||
load();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public T newInstance()
|
public T newInstance()
|
||||||
|
Loading…
Reference in New Issue
Block a user