menuentryswapper: fix "use" being over prioritized.

This commit is contained in:
Ganom
2019-08-16 02:28:50 -04:00
parent 103d06c60c
commit bc4168c400

View File

@@ -870,15 +870,11 @@ public class MenuEntrySwapperPlugin extends Plugin
if (this.shiftClickCustomization && shiftModifier && !option.equals("use"))
{
Integer customOption = getSwapConfig(eventId);
final Integer customOption = getSwapConfig(eventId);
if (customOption != null && customOption == -1)
{
menuManager.addPriorityEntry("Use");
}
else
{
menuManager.removePriorityEntry("Use");
swap(client, "use", option, target, true);
}
}
}