Skip to content

Commit

Permalink
Add parent dir to manifest classpath to account for paper-remapped lo…
Browse files Browse the repository at this point in the history
…ad point.

Currently, the remapped WorldEdit jar on paper is loaded from a sub-directory of the plugins folder, meaning dependencies like truezip and rhino won't be found in the documented search locations. Adding the parent dir temporarily solves this.

See #2692.
Closes #2691.
  • Loading branch information
wizjany authored and me4502 committed Jan 9, 2025
1 parent 805bde1 commit db49cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/buildlogic.platform.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ afterEvaluate {
if (includeClasspath) {
attributes["Class-Path"] = listOf("truezip", "truevfs", "js")
.map { "$it.jar" }
.flatMap { listOf(it, "WorldEdit/$it") }
.flatMap { listOf(it, "WorldEdit/$it", "../$it", "../WorldEdit/$it") }
.joinToString(separator = " ")
}
attributes.putAll(extraAttributes)
Expand Down

0 comments on commit db49cea

Please sign in to comment.