Fix player attack options and player indicators (#1685)
* Fix player attack options and player indicators * player attack options * buying checkstyle bypass method
This commit is contained in:
@@ -56,9 +56,9 @@ import net.runelite.mapping.Import;
|
||||
import net.runelite.rs.api.RSClient;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import net.runelite.injector.raw.HidePlayerAttacks;
|
||||
|
||||
// import net.runelite.injector.raw.DrawMenu;
|
||||
// import net.runelite.injector.raw.HidePlayerAttacks;
|
||||
|
||||
public class Inject
|
||||
{
|
||||
@@ -319,7 +319,7 @@ public class Inject
|
||||
new RenderDraw(this).inject();
|
||||
// new DrawMenu(this).inject();
|
||||
new Occluder(this).inject();
|
||||
// new HidePlayerAttacks(this).inject();
|
||||
new HidePlayerAttacks(this).inject();
|
||||
}
|
||||
|
||||
private java.lang.Class injectInterface(ClassFile cf, ClassFile other)
|
||||
|
||||
@@ -160,6 +160,7 @@ public class HidePlayerAttacks
|
||||
// add option n such
|
||||
|
||||
Instructions ins = addPlayerOptions.getCode().getInstructions();
|
||||
log.info(String.valueOf(ins.getInstructions().size()));
|
||||
ListIterator<Instruction> iterator = ins.getInstructions().listIterator();
|
||||
while (iterator.hasNext())
|
||||
{
|
||||
@@ -169,22 +170,18 @@ public class HidePlayerAttacks
|
||||
continue;
|
||||
}
|
||||
|
||||
i = iterator.next();
|
||||
while (!(i instanceof BiPush) || (byte) ((BiPush) i).getConstant() != 8)
|
||||
{
|
||||
i = iterator.next();
|
||||
}
|
||||
|
||||
i = iterator.next();
|
||||
if (!(i instanceof IAnd))
|
||||
{
|
||||
throw new InjectionException("Yikes I didn't expect this");
|
||||
continue;
|
||||
/*log.info(i.getClass().getName() + i.getClass().getSuperclass() + i.getType().getName() +
|
||||
i.getType().getInstructionClass() + i.getInstructions() + i.toString());
|
||||
throw new InjectionException("Yikes I didn't expect this");**/
|
||||
}
|
||||
|
||||
i = iterator.next();
|
||||
if (!(i instanceof IfICmpNe))
|
||||
{
|
||||
throw new InjectionException("Yikes I didn't expect this");
|
||||
continue;
|
||||
}
|
||||
|
||||
Label target = ((IfICmpNe) i).getJumps().get(0);
|
||||
|
||||
Reference in New Issue
Block a user