Merge pull request #2999 from swazrgb/hotswap-plugin-fix

client: Correctly hotswap plugins with multiple extensions
This commit is contained in:
ThatGamerBlue
2021-06-07 01:35:10 +01:00
committed by GitHub

View File

@@ -782,7 +782,17 @@ public class OPRSExternalPluginManager
for (net.runelite.client.plugins.Plugin plugin : runelitePluginManager.getPlugins())
{
if (!extensions.get(0).getClass().getName().equals(plugin.getClass().getName()))
boolean found = false;
for (Plugin extension : extensions)
{
if (extension.getClass().getName().equals(plugin.getClass().getName()))
{
found = true;
break;
}
}
if (!found)
{
continue;
}