menu swapper: always raise menus from low priority to cc_op

This commit is contained in:
Adam
2022-06-17 11:36:13 -04:00
parent 2e12c707c2
commit 9a584d2982

View File

@@ -1391,11 +1391,11 @@ public class MenuEntrySwapperPlugin extends Plugin
// Item op4 and op5 are CC_OP_LOW_PRIORITY so they get added underneath Use, // 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 // but this also causes them to get sorted after client tick. Change them to
// CC_OP to avoid this. // 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); 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); entry2.setType(MenuAction.CC_OP);
} }