Minor follow-up to #127.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-08-27 20:48:08 -05:00
parent 3a9f6be5ae
commit 0b33fed2d4
2 changed files with 13 additions and 13 deletions

View File

@@ -142,9 +142,9 @@ public class BeatmapParser {
// check if beatmap is cached
String path = String.format("%s/%s", dir.getName(), file.getName());
if (map != null && map.containsKey(path)) {
Long lastModified = map.get(path);
if (map != null && lastModified != null) {
// check last modified times
long lastModified = map.get(path);
if (lastModified == file.lastModified()) {
// add to cached beatmap list
Beatmap beatmap = new Beatmap(file);