runelite-api: fix getInteracting logic

This commit is contained in:
Adam
2017-04-20 19:55:31 -04:00
parent 79bd48f2ce
commit b288b81cea

View File

@@ -58,14 +58,12 @@ public abstract class Actor extends Renderable
return null; return null;
} }
// logic taken from runeloader. if (i < 0x8000)
if (i < 32767)
{ {
return client.getNpcs()[i]; return client.getNpcs()[i];
} }
// XXX is this correct for i = 32767 ? i -= 0x8000;
i = i - 32767 - 1;
return client.getPlayers()[i]; return client.getPlayers()[i];
} }