Skip to content

Commit

Permalink
Fix GameWorldTests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nightm4re94 committed Dec 14, 2024
1 parent f25cd96 commit 6bddadb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,13 @@ public static URL getLocation(String name) {
return fromClass;
}
try {
return (new File(name)).toURI().toURL();
return new URL(name);
} catch (MalformedURLException e) {
return null;
try {
return (new File(name)).toURI().toURL();
} catch (MalformedURLException e1) {
return null;
}
}
}

Expand Down

0 comments on commit 6bddadb

Please sign in to comment.