Add support for "quick-open" at Hydra to MenuEntrySwapper (#7311)

This commit is contained in:
steffenhauge
2019-01-12 12:12:59 +01:00
committed by Tomas Slusny
parent 1fad69cd98
commit 671cbb35fa
2 changed files with 6 additions and 2 deletions

View File

@@ -204,8 +204,8 @@ public interface MenuEntrySwapperConfig extends Config
@ConfigItem(
keyName = "swapQuick",
name = "Quick Pass/Start/Travel",
description = "Swap Pass with Quick-Pass, Ring with Quick-Start and Talk-to with Quick-Travel"
name = "Quick Pass/Open/Start/Travel",
description = "Swap Pass with Quick-Pass, Open with Quick-Open, Ring with Quick-Start and Talk-to with Quick-Travel"
)
default boolean swapQuick()
{

View File

@@ -497,6 +497,10 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("quick-pass", option, target, true);
swap("quick pass", option, target, true);
}
else if (config.swapQuick() && option.equals("open"))
{
swap("quick-open", option, target, true);
}
else if (config.swapAdmire() && option.equals("admire"))
{
swap("teleport", option, target, true);