runelite-api: optimize getInteracting

This commit is contained in:
Adam
2017-05-11 17:30:35 -04:00
parent c24f6b5eb9
commit 5596462b01
2 changed files with 14 additions and 2 deletions

View File

@@ -60,11 +60,11 @@ public abstract class Actor extends Renderable
if (i < 0x8000)
{
return client.getNpcs()[i];
return client.getNpc(i);
}
i -= 0x8000;
return client.getPlayers()[i];
return client.getPlayer(i);
}
public int getHealthRatio()