From eab2835c52385df8a5620c4234cacb5344042a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Sun, 18 Aug 2019 11:48:56 +0800 Subject: [PATCH] fix TInject --- .../scala/io/izzel/taboolib/module/inject/TInjectLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/io/izzel/taboolib/module/inject/TInjectLoader.java b/src/main/scala/io/izzel/taboolib/module/inject/TInjectLoader.java index f0c568e..2440555 100644 --- a/src/main/scala/io/izzel/taboolib/module/inject/TInjectLoader.java +++ b/src/main/scala/io/izzel/taboolib/module/inject/TInjectLoader.java @@ -60,7 +60,7 @@ public class TInjectLoader implements TabooLibLoader.Loader { declaredMethod.setAccessible(true); config.listener(() -> { try { - declaredMethod.invoke(null); + declaredMethod.invoke(instance); } catch (Throwable t) { t.printStackTrace(); }