Add option to swap Talk-to with Enchant for Eluned (#9183)
This commit is contained in:
@@ -291,4 +291,14 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "swapEnchant",
|
||||||
|
name = "Enchant",
|
||||||
|
description = "Swap Talk-to with Enchant for Eluned"
|
||||||
|
)
|
||||||
|
default boolean swapEnchant()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -455,6 +455,11 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("quick-travel", option, target, true);
|
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"))
|
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user