evansloan / collection-log

A Runelite plugin that adds visual improvements to the collection log
BSD 2-Clause "Simplified" License
15 stars 10 forks source link

hotfix: correctly loading collection log files again #34

Closed Timo-DK closed 1 year ago

Timo-DK commented 1 year ago

Due to receiving more reports about the collection log not correctly loading and users having to manually click through each collection log to update I investigated what the newly introduced bug was.

After my last PR #33 I removed the old format loading, but was a bit too ignorant for regressing testing it. The new saves were not loaded, as only the /data/ directory would be iterated and the loadCollectionLogFiles function would check if the directory contains files. As the /data/ directory only contains directories of the user accounts, it would return, practically doing nothing.

Reworked the loadCollectionLogFiles function to invoke the loadCollectionLogFiles overload for each user account directory.