Changeset 603 for AE/installer2/src/net/oni2/aeinstaller/backend/mods
- Timestamp:
- Jan 10, 2013, 5:25:51 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/mods
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/mods/Mod.java
r602 r603 13 13 import net.oni2.aeinstaller.backend.Settings; 14 14 import net.oni2.aeinstaller.backend.Settings.Platform; 15 import net.oni2.aeinstaller.backend.depot.DepotConfig;16 15 import net.oni2.aeinstaller.backend.depot.DepotManager; 17 16 import net.oni2.aeinstaller.backend.depot.model.NodeMod; … … 56 55 Type t = ModManager.getInstance().getTypeByName(tt.getName()); 57 56 types.add(t); 58 if (! t.getName().equals(DepotConfig.getTaxonomyName_ModType_Tool()))57 if (!nm.isTool()) 59 58 t.addEntry(this); 60 59 } … … 187 186 */ 188 187 public boolean isNewerAvailable() { 189 if ( node != null)190 return node.getUploads().firstElement().getTimestamp() > localTimestamp;188 if (file != null) 189 return file.getTimestamp() > localTimestamp; 191 190 else 192 191 return false; … … 261 260 public int getZipSize() { 262 261 return zipSize; 263 }264 265 /**266 * @return Depot Mod-Node267 */268 public NodeMod getNode() {269 return node;270 262 } 271 263 -
AE/installer2/src/net/oni2/aeinstaller/backend/mods/ModManager.java
r602 r603 10 10 11 11 import net.oni2.aeinstaller.backend.Paths; 12 import net.oni2.aeinstaller.backend.depot.DepotConfig;13 12 import net.oni2.aeinstaller.backend.depot.DepotManager; 14 13 import net.oni2.aeinstaller.backend.depot.model.NodeMod; … … 56 55 } 57 56 58 TaxonomyTerm toolTerm = DepotManager.getInstance().getTaxonomyTerm(59 DepotConfig.getTaxonomyName_ModType_Tool());60 57 for (NodeMod nm : DepotManager.getInstance().getModPackageNodes()) { 61 58 if (nm.getUploads().size() == 1) { 62 59 Mod m = new Mod(nm); 63 if (nm. getTypes().contains(toolTerm))60 if (nm.isTool()) 64 61 tools.put(m.getPackageNumber(), m); 65 62 else
Note:
See TracChangeset
for help on using the changeset viewer.