menu entry swapper: split hardwood grove into 2 options

The option was the only one that could fit into more than one section
This commit is contained in:
Hydrox6
2020-06-05 23:13:01 +01:00
committed by Adam
parent 40f17648b4
commit 5048058422
2 changed files with 15 additions and 3 deletions

View File

@@ -221,14 +221,26 @@ public interface MenuEntrySwapperConfig extends Config
@ConfigItem(
keyName = "swapHardWoodGrove",
name = "Hardwood Grove",
description = "Swap Quick-Pay(100) and Send-Parcel at Hardwood Grove"
name = "Hardwood Grove Quick-Pay",
description = "Swap Quick-Pay(100) at the Hardwood Grove",
section = objectSection
)
default boolean swapHardWoodGrove()
{
return true;
}
@ConfigItem(
keyName = "swapHardWoodGroveParcel",
name = "Hardwood Grove Send-Parcel",
description = "Swap Send-Parcel at the Hardwood Grove",
section = npcSection
)
default boolean swapHardWoodGroveParcel()
{
return true;
}
@ConfigItem(
keyName = "swapHarpoon",
name = "Harpoon",

View File

@@ -442,7 +442,7 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("teleport", option, target, index);
}
if (config.swapHardWoodGrove() && target.contains("rionasta"))
if (config.swapHardWoodGroveParcel() && target.contains("rionasta"))
{
swap("send-parcel", option, target, index);
}