Fix #4101 - Add swap options for Decant
This commit is contained in:
@@ -243,4 +243,15 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -385,6 +385,11 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("pay", option, target, true);
|
swap("pay", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.swapDecant())
|
||||||
|
{
|
||||||
|
swap("decant", option, target, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user