Fix botched switch statement

This commit is contained in:
William committed 2022-01-29 01:16:44 +00:00
1 parent cfb3d7c0e8
commit 1bfc594db6
1 file changed
+2
@@ -256,6 +256,7 @@ public class TpCommand extends CommandBase {
case "<x>" -> player.getLocation().getX();
case "<y>" -> player.getLocation().getY();
case "<z>" -> player.getLocation().getZ();
default -> 0;
};
} else {
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
@@ -285,6 +286,7 @@ public class TpCommand extends CommandBase {
value = switch (expectedArgument) {
case "<yaw>" -> player.getLocation().getYaw();
case "<pitch>" -> player.getLocation().getPitch();
default -> 0;
};
} else {
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;