injector: Add "Scene" hint for drawTile method in renderDraw raw
This commit is contained in:
@@ -35,7 +35,7 @@ public class RenderDraw
|
|||||||
{
|
{
|
||||||
Stopwatch stopwatch = Stopwatch.createStarted();
|
Stopwatch stopwatch = Stopwatch.createStarted();
|
||||||
|
|
||||||
net.runelite.asm.Method obmethod = findMethod(inject, "drawTile");
|
net.runelite.asm.Method obmethod = findMethod(inject, "drawTile", "Scene");
|
||||||
Method renderDraw = findMethod(inject, "draw", "Entity").getPoolMethod();
|
Method renderDraw = findMethod(inject, "draw", "Entity").getPoolMethod();
|
||||||
|
|
||||||
Instructions ins = obmethod.getCode().getInstructions();
|
Instructions ins = obmethod.getCode().getInstructions();
|
||||||
@@ -65,10 +65,9 @@ public class RenderDraw
|
|||||||
|
|
||||||
if (count < 21)
|
if (count < 21)
|
||||||
{
|
{
|
||||||
//TODO: Fix for travis
|
throw new InjectionException("Not all renderDraws were found");
|
||||||
//throw new InjectionException("Not all renderDraws were found");
|
|
||||||
}
|
}
|
||||||
else if (count != 21)
|
if (count != 21)
|
||||||
{
|
{
|
||||||
log.warn("Found {} draws while 21 were expected. Rev update?", count);
|
log.warn("Found {} draws while 21 were expected. Rev update?", count);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user