From b6e26e0c090e200a186a681a8de116caa04b3c4a Mon Sep 17 00:00:00 2001 From: kamcio96 Date: Wed, 18 Nov 2015 10:02:28 +0100 Subject: [PATCH] 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 --- native/src/main/java/net/md_5/bungee/jni/NativeCode.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/native/src/main/java/net/md_5/bungee/jni/NativeCode.java b/native/src/main/java/net/md_5/bungee/jni/NativeCode.java index 7419dc97..ad5657dd 100644 --- a/native/src/main/java/net/md_5/bungee/jni/NativeCode.java +++ b/native/src/main/java/net/md_5/bungee/jni/NativeCode.java @@ -22,8 +22,6 @@ public final class NativeCode this.name = name; this.javaImpl = javaImpl; this.nativeImpl = nativeImpl; - - load(); } public T newInstance()