indicators plugin: fix not always identifying menus by type

The client seems to add 2000 to menu types to force reordering
This commit is contained in:
Adam
2018-04-05 18:07:34 -04:00
parent 92103f66f6
commit 9eb94736d5

View File

@@ -90,6 +90,12 @@ public class PlayerIndicatorsPlugin extends Plugin
public void onMenuEntryAdd(MenuEntryAdded menuEntryAdded)
{
int type = menuEntryAdded.getType();
if (type >= 2000)
{
type -= 2000;
}
int identifier = menuEntryAdded.getIdentifier();
if (type == FOLLOW.getId() || type == TRADE.getId()
|| type == SPELL_CAST_ON_PLAYER.getId() || type == ITEM_USE_ON_PLAYER.getId()