menu entry swapper: Add fishing spot bait swap (#13203)

This commit is contained in:
Patrick Watts
2021-02-16 03:49:10 +04:00
committed by GitHub
parent c92f835102
commit 5fd55ae9a7
2 changed files with 15 additions and 0 deletions

View File

@@ -287,6 +287,17 @@ public interface MenuEntrySwapperConfig extends Config
return false;
}
@ConfigItem(
keyName = "swapBait",
name = "Bait",
description = "Swap Lure, Small Net with Bait on Fishing spot",
section = objectSection
)
default boolean swapBait()
{
return false;
}
@ConfigItem(
keyName = "swapHelp",
name = "Help",

View File

@@ -238,6 +238,10 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("big net", "harpoon", config::swapHarpoon);
swap("net", "harpoon", config::swapHarpoon);
swap("lure", "bait", config::swapBait);
swap("net", "bait", config::swapBait);
swap("small net", "bait", config::swapBait);
swap("enter", "portal", "home", () -> config.swapHomePortal() == HouseMode.HOME);
swap("enter", "portal", "build mode", () -> config.swapHomePortal() == HouseMode.BUILD_MODE);
swap("enter", "portal", "friend's house", () -> config.swapHomePortal() == HouseMode.FRIENDS_HOUSE);