limit the size because it crashes the bot

This commit is contained in:
Chayapak 2023-06-25 15:43:37 +07:00
parent 5a0483b139
commit 940c1760dc

View file

@ -48,6 +48,8 @@ public class GenerateMazeCommand implements Command {
final int width = Integer.parseInt(args[3]);
final int height = Integer.parseInt(args[4]);
if (width > 100 || height > 100) return Component.text("Size is too big").color(NamedTextColor.RED);
final MazeGenerator generator = new MazeGenerator(width, height);
generator.generateMaze();