Skip to content

Commit 0f81f63

Browse files
committed
Fix gametest paths on NeoForge
1 parent c7882a7 commit 0f81f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neoforge/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ neoForge {
9999

100100
sourceSet = sourceSets.getByName("gametest")
101101
systemProperty("neoforge.enabledGameTestNamespaces", "lithium-gametest")
102-
environment("LITHIUM_GAMETEST_RESOURCES", file("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path)
102+
environment("LITHIUM_GAMETEST_RESOURCES", file(gameDirectory.get().asFile).resolve("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path)
103103
}
104104
create("gametestServer") {
105105
type = "gameTestServer"
106106
gameDirectory.set(file("runs/gametestServer"))
107107

108108
sourceSet = sourceSets.getByName("gametest")
109109
systemProperty("neoforge.enabledGameTestNamespaces", "lithium-gametest")
110-
environment("LITHIUM_GAMETEST_RESOURCES", file("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path)
110+
environment("LITHIUM_GAMETEST_RESOURCES", file(gameDirectory.get().asFile).resolve("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path)
111111
}
112112
}
113113

0 commit comments

Comments
 (0)