Fix merge all

Fixes #2804
This commit is contained in:
dordsor21 2020-05-04 17:15:53 +01:00
parent a37ab10414
commit 228c37815a

View File

@ -54,8 +54,8 @@ import java.util.UUID;
confirmation = true)
public class Merge extends SubCommand {
public static final String[] values = new String[] {"north", "east", "south", "west", "auto"};
public static final String[] aliases = new String[] {"n", "e", "s", "w", "all"};
public static final String[] values = new String[] {"north", "east", "south", "west"};
public static final String[] aliases = new String[] {"n", "e", "s", "w"};
public static String direction(float yaw) {
yaw = yaw / 90;
@ -112,6 +112,10 @@ public class Merge extends SubCommand {
break;
}
}
if (direction == null && (args[0].equalsIgnoreCase("all") || args[1]
.equalsIgnoreCase("auto"))) {
direction = Direction.ALL;
}
}
if (direction == null) {
MainUtil.sendMessage(player, Captions.COMMAND_SYNTAX,