Plot info footer

This commit is contained in:
boy0001
2015-07-31 19:46:07 +10:00
parent 0667e885de
commit 6f90700187
10 changed files with 30 additions and 13 deletions

View File

@ -74,7 +74,7 @@ public class FileUUIDHandler extends UUIDHandlerImplementation {
final String s = current.replaceAll(".dat$", "");
try {
UUID uuid = UUID.fromString(s);
if (check || all.contains(uuid)) {
if (check || all.remove(uuid)) {
File file = new File(playerdataFolder + File.separator + current);
InputSupplier<FileInputStream> is = Files.newInputStreamSupplier(file);
NbtFactory.NbtCompound compound = NbtFactory.fromStream(is, NbtFactory.StreamOptions.GZIP_COMPRESSION);
@ -91,8 +91,13 @@ public class FileUUIDHandler extends UUIDHandlerImplementation {
}
}
add(toAdd);
if (whenDone != null) whenDone.run();
return;
if (all.size() == 0) {
if (whenDone != null) whenDone.run();
return;
}
else {
PS.debug("Failed to cache: " + all.size() + " uuids - slowly processing all files");
}
}
final HashSet<String> worlds = new HashSet<>();
worlds.add(world);