menu entry swapper: add clean swap

swaps the clean/use option
This commit is contained in:
Michal Zielinski
2020-09-30 14:37:54 -04:00
parent 782e2db580
commit e30e6853ca
2 changed files with 13 additions and 0 deletions

View File

@@ -133,6 +133,17 @@ public interface MenuEntrySwapperConfig extends Config
return false;
}
@ConfigItem(
keyName = "swapHerbs",
name = "Clean",
description = "Swap Clean with Use on Herbs",
section = itemSection
)
default boolean swapHerbs()
{
return false;
}
@ConfigItem(
keyName = "swapContract",
name = "Contract",

View File

@@ -325,6 +325,8 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("bury", "use", config::swapBones);
swap("clean", "use", config::swapHerbs);
swap("collect-note", "collect-item", () -> config.swapGEItemCollect() == GEItemCollectMode.ITEMS);
swap("collect-notes", "collect-items", () -> config.swapGEItemCollect() == GEItemCollectMode.ITEMS);