Add option to swap Talk-to with Enchant for Eluned (#9183)

This commit is contained in:
SomeBall-1
2019-07-05 11:26:17 -07:00
committed by Tomas Slusny
parent 3da044ea3a
commit e7bb1c1e07
2 changed files with 15 additions and 0 deletions

View File

@@ -291,4 +291,14 @@ public interface MenuEntrySwapperConfig extends Config
{
return true;
}
@ConfigItem(
keyName = "swapEnchant",
name = "Enchant",
description = "Swap Talk-to with Enchant for Eluned"
)
default boolean swapEnchant()
{
return true;
}
}

View File

@@ -455,6 +455,11 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("quick-travel", option, target, true);
}
if (config.swapEnchant())
{
swap("enchant", option, target, true);
}
}
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
{