Fix #4101 - Add swap options for Decant

This commit is contained in:
Oliver Atkinson
2018-06-30 16:15:39 +01:00
parent 3359828821
commit 57ef0cf00b
2 changed files with 16 additions and 0 deletions

View File

@@ -243,4 +243,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

@@ -385,6 +385,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"))
{