Merge pull request #4109 from ollieatkinson/fix-4101-decant-ge

Fix #4101 - Add swap options for Decant
This commit is contained in:
Adam
2018-07-10 21:23:42 -04:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -239,4 +239,15 @@ public interface MenuEntrySwapperConfig extends Config
{
return true;
}
@ConfigItem(
position = 19,
keyName = "swapDecant",
name = "Decant",
description = "Swap Talk-to with Decant for Bob Barter and Murky Matt at the Grand Exchange."
)
default boolean swapDecant()
{
return false;
}
}

View File

@@ -387,6 +387,11 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("pay", option, target, true);
}
if (config.swapDecant())
{
swap("decant", option, target, true);
}
}
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
{