Ignore:
Timestamp:
Jan 17, 2013, 8:52:55 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.86:

  • Added patch-type to tools
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/mods/ModManager.java

    r624 r626  
    1010import java.util.HashMap;
    1111import java.util.HashSet;
     12import java.util.TreeMap;
    1213import java.util.TreeSet;
    1314import java.util.Vector;
     
    208209         * @return Collection of tools valid on this platform and not mandatory
    209210         */
    210         public Collection<Mod> getTools() {
    211                 Vector<Mod> res = new Vector<Mod>();
     211        public TreeMap<String, Mod> getTools() {
     212                TreeMap<String, Mod> res = new TreeMap<String, Mod>();
    212213                for (Mod m : tools.values())
    213214                        if (m.isValidOnPlatform() && !m.isMandatoryMod())
    214                                 res.add(m);
     215                                res.put(m.getName(), m);
    215216                return res;
    216217        }
Note: See TracChangeset for help on using the changeset viewer.