Fix Packet

This commit is contained in:
sky 2020-03-08 22:13:29 +08:00
parent f078538d23
commit ea029a9466

View File

@ -80,8 +80,8 @@ public class TInjectHelper {
instance.add(CompatKotlin.getCompanion(pluginClass)); instance.add(CompatKotlin.getCompanion(pluginClass));
} }
// Main // Main
else if (pluginClass.equals(plugin.getClass())) { if (pluginClass.equals(PluginLoader.get(plugin).getClass())) {
instance.add(plugin); instance.add(PluginLoader.get(plugin));
} }
// TInject // TInject
else if (TInjectCreator.getInstanceMap().entrySet().stream().anyMatch(e -> e.getKey().getType().equals(pluginClass))) { else if (TInjectCreator.getInstanceMap().entrySet().stream().anyMatch(e -> e.getKey().getType().equals(pluginClass))) {