client: Correctly hotswap plugins with multiple extensions

This commit is contained in:
swazrgb
2021-06-06 07:05:00 +02:00
committed by SwazRGB
parent 405ab68bf5
commit 2dbb96c38c

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;
}