Skip to content

Commit

Permalink
fix crash with spice
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Oct 22, 2024
1 parent 4000295 commit 565e780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ object ModIdentifier {
// Get the mod containing that class
return try {
if (url.protocol == "jar") url = URL(url.file.substring(0, url.file.indexOf('!')))
if (url.protocol != "file") return emptySet()
modMap[File(url.toURI()).canonicalFile] ?: emptySet()
} catch (e: URISyntaxException) {
throw RuntimeException(e)
Expand Down

0 comments on commit 565e780

Please sign in to comment.