From 84bcdaa7b3385951319a300aad8830a7c30c0495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Mon, 9 Jul 2018 21:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E7=9D=BF?= =?UTF-8?q?=E6=99=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java b/src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java index 534c02f..73b2202 100644 --- a/src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java +++ b/src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java @@ -46,7 +46,7 @@ public class TDependencyInjector { } public static void inject(Plugin plugin, Object o) { - if (!plugin.equals(Main.getInst()) && !injected.contains(plugin.getName())) { + if (!injected.contains(plugin.getName())) { injected.add(plugin.getName()); TLocaleLoader.load(plugin, true); injectDependencies(plugin, o);