menu swapper: add enter-corrupted gauntlet swap
This commit is contained in:
@@ -431,4 +431,14 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "swapGauntlet",
|
||||||
|
name = "Corrupted Gauntlet",
|
||||||
|
description = "Swap Enter with Enter-corrupted when entering The Gauntlet"
|
||||||
|
)
|
||||||
|
default boolean swapGauntlet()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -636,6 +636,10 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("empty", option, target, index);
|
swap("empty", option, target, index);
|
||||||
}
|
}
|
||||||
|
else if (config.swapGauntlet() && option.equals("enter") && target.equals("the gauntlet"))
|
||||||
|
{
|
||||||
|
swap("enter-corrupted", option, target, index);
|
||||||
|
}
|
||||||
else if (config.swapQuick() && option.equals("enter"))
|
else if (config.swapQuick() && option.equals("enter"))
|
||||||
{
|
{
|
||||||
swap("quick-enter", option, target, index);
|
swap("quick-enter", option, target, index);
|
||||||
|
|||||||
Reference in New Issue
Block a user