Skip to content

Commit

Permalink
fix: File crashes on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jul 2, 2024
1 parent f4599a2 commit 7f1f7d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
org.gradle.jvmargs=-Xmx1G

deps.loader=0.15.11
mod.version=2.0.1
mod.version=2.0.2
mod.name=SkinShuffle
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ public boolean validate() {
return urlValidator.isValid(widget.getText());
}
case FILE -> {
return isValidPngFilePath(widget.getText());
try {
return isValidPngFilePath(widget.getText());
} catch (Exception ignored) {
return false;
}
}
case RESOURCE_LOCATION -> {
/*? if <1.21 {*/
Expand Down

0 comments on commit 7f1f7d0

Please sign in to comment.