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:
Tomas Slusny
2018-04-14 07:54:47 +02:00
parent a143216464
commit ff22cf1063

View File

@@ -392,6 +392,20 @@ public class MenuEntrySwapperPlugin extends Plugin
{
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"))
{
swap("rub", option, target, true);
@@ -408,19 +422,6 @@ public class MenuEntrySwapperPlugin extends Plugin
{
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