Revision 50a82b23
Added by Leszek Koltunski 11 months ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
324 | 324 |
downloadedObjects.append(' '); |
325 | 325 |
downloadedObjects.append(object.year); |
326 | 326 |
downloadedObjects.append(' '); |
327 |
downloadedObjects.append(object.author); |
|
327 |
downloadedObjects.append(object.author.replace(' ','_'));
|
|
328 | 328 |
downloadedObjects.append(' '); |
329 | 329 |
downloadedObjects.append(object.price); |
330 | 330 |
} |
... | ... | |
387 | 387 |
diff = Float.parseFloat(parts[7]); |
388 | 388 |
category = Integer.parseInt(parts[8]); |
389 | 389 |
year = Integer.parseInt(parts[9]); |
390 |
author = parts[10]; |
|
390 |
author = parts[10].replace('_',' ');
|
|
391 | 391 |
} |
392 | 392 |
if( length>=12 ) |
393 | 393 |
{ |
394 | 394 |
char c = parts[11].charAt(0); |
395 | 395 |
if( c=='t' ) price = 0; |
396 | 396 |
else if( c=='f' ) price = ListObjects.DEFAULT_PRICE_OF_OLD_OBJECTS; |
397 |
else price = Integer.parseInt(parts[7]);
|
|
397 |
else price = Integer.parseInt(parts[11]);
|
|
398 | 398 |
} |
399 | 399 |
|
400 | 400 |
int scrambles = Integer.parseInt(scra); |
Also available in: Unified diff
bugfix for a crash.