Move reordering of items after shift-click
Move reordering of menus after shift-click reordering to make it work with affected items. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -392,6 +392,20 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("investigate", option, target, true);
|
swap("investigate", option, target, true);
|
||||||
}
|
}
|
||||||
|
else if (config.swapBones() && option.equals("bury"))
|
||||||
|
{
|
||||||
|
swap("chase", option, target, true);
|
||||||
|
}
|
||||||
|
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
|
||||||
|
{
|
||||||
|
Integer customOption = getSwapConfig(itemId);
|
||||||
|
|
||||||
|
if (customOption != null && customOption == -1)
|
||||||
|
{
|
||||||
|
swap("use", option, target, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Put all item-related swapping after shift-click
|
||||||
else if (config.swapTeleportItem() && option.equals("wear"))
|
else if (config.swapTeleportItem() && option.equals("wear"))
|
||||||
{
|
{
|
||||||
swap("rub", option, target, true);
|
swap("rub", option, target, true);
|
||||||
@@ -408,19 +422,6 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("use", option, target, true);
|
swap("use", option, target, true);
|
||||||
}
|
}
|
||||||
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
|
|
||||||
{
|
|
||||||
Integer customOption = getSwapConfig(itemId);
|
|
||||||
|
|
||||||
if (customOption != null && customOption == -1)
|
|
||||||
{
|
|
||||||
swap("use", option, target, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (config.swapChase() && option.equals("pick-up"))
|
|
||||||
{
|
|
||||||
swap("chase", option, target, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user