Skip to content

Commit

Permalink
fix path-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Sep 18, 2023
1 parent 1db2b62 commit dc95eb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class IdofrontConfigBuilder<T>(
) {
// Look in jar for a config of supported formats
val path = IdofrontConfig.supportedFormats.firstNotNullOfOrNull { ext ->
val path = "$fileWithoutExt.$ext"
val path = "$fileWithoutExt.$ext".replace("\\", "/")
path.takeIf { getResource(path) != null }
} ?: error("Could not find config in plugin resources at $relativePath/$fileName.<format>")

Expand Down

0 comments on commit dc95eb4

Please sign in to comment.