Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add directory existence check for auto rotation library loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jun 22, 2023
1 parent be7ea82 commit 4f7aa82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,9 @@
33343,
33356,
33364,
34605
33907,
33970,
33974,
34605,
34699
]
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static void LocalRotationWatcher()

foreach (var dir in dirs)
{
if (string.IsNullOrEmpty(dir))
if (string.IsNullOrEmpty(dir) || !Directory.Exists(dir))
{
continue;
}
Expand Down

0 comments on commit 4f7aa82

Please sign in to comment.