From e9a95b89cf9ecc00de1f3f609147515335f10fb2 Mon Sep 17 00:00:00 2001 From: AnimeGitB Date: Thu, 21 Jul 2022 21:17:53 +0930 Subject: [PATCH] Use sorted containers for commands & aliases --- src/main/java/emu/grasscutter/command/CommandMap.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/CommandMap.java b/src/main/java/emu/grasscutter/command/CommandMap.java index 91d228f0f..c976c5ccb 100644 --- a/src/main/java/emu/grasscutter/command/CommandMap.java +++ b/src/main/java/emu/grasscutter/command/CommandMap.java @@ -8,9 +8,9 @@ import java.util.*; @SuppressWarnings({"UnusedReturnValue", "unused"}) public final class CommandMap { - private final Map commands = new LinkedHashMap<>(); - private final Map aliases = new LinkedHashMap<>(); - private final Map annotations = new LinkedHashMap<>(); + private final Map commands = new TreeMap<>(); + private final Map aliases = new TreeMap<>(); + private final Map annotations = new TreeMap<>(); private final Map targetPlayerIds = new HashMap<>(); private static final String consoleId = "console";