Swap also dismantle/reset on box traps

Currently the menu entry swapper swaps only check and reset on box traps
what is not that useful without also swapping dismantle and reset.

See also: #1085

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-04-11 11:07:17 +02:00
parent eb82baa625
commit 90ee6697ab

View File

@@ -384,7 +384,7 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("last-destination (", option, target, false);
}
else if (config.swapBoxTrap() && option.equals("check"))
else if (config.swapBoxTrap() && (option.equals("check") || option.equals("dismantle")))
{
swap("reset", option, target, true);
}