Change how world is stored & Bug fix

This commit is contained in:
BruceChen 2022-08-31 18:00:00 +08:00
parent c90ea0e92b
commit 9089bb4cdb
4 changed files with 21 additions and 98 deletions

View file

@ -712,10 +712,10 @@ namespace MinecraftClient
try
{
Command cmd = (Command)Activator.CreateInstance(type);
cmds[cmd.CmdName.ToLower()] = cmd;
cmd_names.Add(cmd.CmdName.ToLower());
cmds[Settings.ToLowerIfNeed(cmd.CmdName)] = cmd;
cmd_names.Add(Settings.ToLowerIfNeed(cmd.CmdName));
foreach (string alias in cmd.getCMDAliases())
cmds[alias.ToLower()] = cmd;
cmds[Settings.ToLowerIfNeed(alias)] = cmd;
}
catch (Exception e)
{