Add option to swap "interact" with "empty" on birdhouses

This commit is contained in:
Ethan
2018-05-25 14:49:01 -05:00
committed by Ethan
parent 3a6af37959
commit 5b1088fb2e
2 changed files with 15 additions and 0 deletions

View File

@@ -221,4 +221,15 @@ public interface MenuEntrySwapperConfig extends Config
{
return true;
}
@ConfigItem(
position = 17,
keyName = "swapBirdhouseEmpty",
name = "Birdhouse",
description = "Swap Interact with Empty for birdhouses on Fossil Island"
)
default boolean swapBirdhouseEmpty()
{
return true;
}
}

View File

@@ -446,6 +446,10 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("use", option, target, true);
}
else if (config.swapBirdhouseEmpty() && option.equals("interact") && target.contains("birdhouse"))
{
swap("empty", option, target, true);
}
}
@Subscribe