From 9eb94736d5522e6ddef42f95f8655fa2a6f85ff2 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 5 Apr 2018 18:07:34 -0400 Subject: [PATCH] indicators plugin: fix not always identifying menus by type The client seems to add 2000 to menu types to force reordering --- .../plugins/playerindicators/PlayerIndicatorsPlugin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsPlugin.java index 4be86aa712..5399dbfb43 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsPlugin.java @@ -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()