Skip to content

Commit

Permalink
Post event outside of loop going through the files
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 authored Sep 18, 2024
1 parent 5d45b99 commit ddf0826
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ private void checkLoennFilesDatabase(String mod, Path modFolder, String version)
loennEffects.addAll(extractedLoennEntities.getRight());
}
}

log.info("Found {} Lönn entities, {} triggers, {} effects in https://gamebanana.com/mmdl/{}.",
loennEntities.size(), loennTriggers.size(), loennEffects.size(), version);
EventListener.handle(listener -> listener.scannedLoennEntities("https://gamebanana.com/mmdl/" + version,
loennEntities.size(), loennTriggers.size(), loennEffects.size()));
}

log.info("Found {} Lönn entities, {} triggers, {} effects in https://gamebanana.com/mmdl/{}.",
loennEntities.size(), loennTriggers.size(), loennEffects.size(), version);
EventListener.handle(listener -> listener.scannedLoennEntities("https://gamebanana.com/mmdl/" + version,
loennEntities.size(), loennTriggers.size(), loennEffects.size()));
} catch (IOException | IllegalArgumentException e) {
// if a file cannot be read as a zip, no need to worry about it.
// we will just write an empty array.
Expand Down

0 comments on commit ddf0826

Please sign in to comment.