public List func_22176_b() { ArrayList arraylist = new ArrayList(); File afile[] = field_22180_a.listFiles(); File afile1[] = afile; int i = afile1.length; for (int j = 0; j < i; j++) { File file = afile1[j]; if (!file.isDirectory()) { continue; } String s = file.getName(); WorldInfo worldinfo = func_22173_b(s); if (worldinfo == null) { continue; } boolean flag = worldinfo.getSaveVersion() != 19132; String s1 = worldinfo.getWorldName(); if (s1 == null || MathHelper.stringNullOrLengthZero(s1)) { s1 = s; } arraylist.add( new SaveFormatComparator( s, s1, worldinfo.getLastTimePlayed(), worldinfo.getSizeOnDisk(), flag)); } return arraylist; }
public List func_22176_b() { ArrayList arraylist = new ArrayList(); for (int i = 0; i < 5; i++) { String s = (new StringBuilder()).append("World").append(i + 1).toString(); WorldInfo worldinfo = func_22173_b(s); if (worldinfo != null) { arraylist.add( new SaveFormatComparator( s, "", worldinfo.getLastTimePlayed(), worldinfo.getSizeOnDisk(), false)); } } return arraylist; }