Skip to content

Commit

Permalink
Merge pull request runelite#1018 from sethtroll/addburyswap
Browse files Browse the repository at this point in the history
menu entry swapper: swaps bury to use
  • Loading branch information
Adam- authored Mar 19, 2018
2 parents 41323e3 + cf20942 commit cf6153c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,15 @@ default boolean swapTeleportItem()
{
return true;
}

@ConfigItem(
position = 12,
keyName = "swapBones",
name = "Bury",
description = "Swap Bury with Use on Bones"
)
default boolean swapBones()
{
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ else if (config.swapTeleportItem() && option.equals("wield"))
{
swap("teleport", option, target, true);
}
else if (config.swapBones() && option.equals("bury"))
{
swap("use", option, target, true);
}
}

private int searchIndex(MenuEntry[] entries, String option, String target, boolean strict)
Expand Down

0 comments on commit cf6153c

Please sign in to comment.