menu swapper: always raise menus from low priority to cc_op
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user