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;
}
// logic taken from runeloader.
if (i < 32767)
if (i < 0x8000)
{
return client.getNpcs()[i];
}
// XXX is this correct for i = 32767 ?
i = i - 32767 - 1;
i -= 0x8000;
return client.getPlayers()[i];
}