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));
}
// Main
else if (pluginClass.equals(plugin.getClass())) {
instance.add(plugin);
if (pluginClass.equals(PluginLoader.get(plugin).getClass())) {
instance.add(PluginLoader.get(plugin));
}
// TInject
else if (TInjectCreator.getInstanceMap().entrySet().stream().anyMatch(e -> e.getKey().getType().equals(pluginClass))) {