Merge pull request #437 from runelite-extended/gandolf-is-banned-for-2-days-lets-celebrate
Fix Raids DC Scout
This commit is contained in:
@@ -27,6 +27,7 @@ package net.runelite.client.plugins.raids;
|
|||||||
import java.awt.BorderLayout;
|
import java.awt.BorderLayout;
|
||||||
import java.awt.FlowLayout;
|
import java.awt.FlowLayout;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.lang.reflect.Method;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
@@ -81,23 +82,18 @@ public class RaidsPanel extends PluginPanel
|
|||||||
|
|
||||||
if ((client.getGameState() == GameState.LOGGED_IN))
|
if ((client.getGameState() == GameState.LOGGED_IN))
|
||||||
{
|
{
|
||||||
|
try
|
||||||
//todo once bytecodes work again, re-enable
|
|
||||||
|
|
||||||
/* try
|
|
||||||
{
|
{
|
||||||
//look for client.gameStateChanged(-1); in src files to find
|
//look for client.gameStateChanged(-1); in src files to find
|
||||||
Method m = client.getClass().getClassLoader().loadClass("ba").getDeclaredMethod("ec", int.class, byte.class);
|
Method m = client.getClass().getClassLoader().loadClass("ba").getDeclaredMethod("ec", int.class, byte.class);
|
||||||
m.setAccessible(true);
|
m.setAccessible(true);
|
||||||
m.invoke(null, 40, (byte)3);
|
m.invoke(null, 40, (byte) 3);
|
||||||
|
|
||||||
//TODO: Since this is mainly for raids i'd like to reload the raids scouting plugin after the dc is finished
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (ReflectiveOperationException f)
|
catch (ReflectiveOperationException f)
|
||||||
{
|
{
|
||||||
throw new RuntimeException(f);
|
throw new RuntimeException(f);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user