Quality of Life: Sort Modules/Commands alphabetically
This commit is contained in:
parent
e4b7525a28
commit
6b6d60fd07
|
@ -12,6 +12,8 @@ import net.minecraft.util.text.TextComponentString;
|
|||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -70,6 +72,8 @@ public final class CommandManager {
|
|||
|
||||
//load our external commands
|
||||
loadExternalCommands();
|
||||
|
||||
Collections.sort(commandList, Comparator.comparing(Command::getDisplayName));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,11 +18,12 @@ import me.rigamortis.seppuku.impl.module.player.*;
|
|||
import me.rigamortis.seppuku.impl.module.render.*;
|
||||
import me.rigamortis.seppuku.impl.module.ui.HudEditorModule;
|
||||
import me.rigamortis.seppuku.impl.module.world.*;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -154,6 +155,8 @@ public final class ModuleManager {
|
|||
|
||||
for (final Module module : moduleList)
|
||||
Seppuku.INSTANCE.getEventManager().dispatchEvent(new EventModulePostLoaded(module));
|
||||
|
||||
Collections.sort(moduleList, Comparator.comparing(Module::getDisplayName));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue