From 9a584d2982dafe7e5368c4687399bbb113d1e200 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 17 Jun 2022 11:36:13 -0400 Subject: [PATCH] menu swapper: always raise menus from low priority to cc_op --- .../plugins/menuentryswapper/MenuEntrySwapperPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/menuentryswapper/MenuEntrySwapperPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/menuentryswapper/MenuEntrySwapperPlugin.java index 4efb4328a9..123d543d3d 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/menuentryswapper/MenuEntrySwapperPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/menuentryswapper/MenuEntrySwapperPlugin.java @@ -1391,11 +1391,11 @@ public class MenuEntrySwapperPlugin extends Plugin // Item op4 and op5 are CC_OP_LOW_PRIORITY so they get added underneath Use, // but this also causes them to get sorted after client tick. Change them to // CC_OP to avoid this. - if (entry1.isItemOp() && entry1.getType() == MenuAction.CC_OP_LOW_PRIORITY) + if (entry1.getType() == MenuAction.CC_OP_LOW_PRIORITY) { entry1.setType(MenuAction.CC_OP); } - if (entry2.isItemOp() && entry2.getType() == MenuAction.CC_OP_LOW_PRIORITY) + if (entry2.getType() == MenuAction.CC_OP_LOW_PRIORITY) { entry2.setType(MenuAction.CC_OP); }