menu swapper: check home portal swap target

The swap was attemting to run on anything with the "enter" option, which
conflicted with the quick-enter swap below it.

Co-authored-by: Adam <Adam@sigterm.info>
This commit is contained in:
melkypie
2020-01-10 19:58:05 -05:00
committed by Adam
parent 8ddcb92bd7
commit 2681d395fc
2 changed files with 32 additions and 1 deletions

View File

@@ -498,7 +498,7 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("harpoon", option, target, index);
}
else if (config.swapHomePortal() != HouseMode.ENTER && option.equals("enter"))
else if (config.swapHomePortal() != HouseMode.ENTER && option.equals("enter") && target.equals("portal"))
{
switch (config.swapHomePortal())
{