From b85675f6240acee68877a0629fac9329a9937e95 Mon Sep 17 00:00:00 2001 From: Lotto Date: Thu, 19 Mar 2020 00:12:28 +0100 Subject: [PATCH] api: remove Follow and Trade menu actions They are just the third and fourth player options but deprioritized by having 2000 added to them. --- runelite-api/src/main/java/net/runelite/api/MenuAction.java | 3 --- .../plugins/playerindicators/PlayerIndicatorsPlugin.java | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/runelite-api/src/main/java/net/runelite/api/MenuAction.java b/runelite-api/src/main/java/net/runelite/api/MenuAction.java index 450989d9c3..44bf09aa53 100644 --- a/runelite-api/src/main/java/net/runelite/api/MenuAction.java +++ b/runelite-api/src/main/java/net/runelite/api/MenuAction.java @@ -273,9 +273,6 @@ public enum MenuAction */ RUNELITE_OVERLAY_CONFIG(1502), - FOLLOW(2046), - TRADE(2047), - /** * Menu action triggered when the id is not defined in this class. */ 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 e545f92dff..973e2dfbfa 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 @@ -103,8 +103,8 @@ public class PlayerIndicatorsPlugin extends Plugin } int identifier = menuEntryAdded.getIdentifier(); - if (type == FOLLOW.getId() || type == TRADE.getId() - || type == SPELL_CAST_ON_PLAYER.getId() || type == ITEM_USE_ON_PLAYER.getId() + if (type == SPELL_CAST_ON_PLAYER.getId() + || type == ITEM_USE_ON_PLAYER.getId() || type == PLAYER_FIRST_OPTION.getId() || type == PLAYER_SECOND_OPTION.getId() || type == PLAYER_THIRD_OPTION.getId()