diff --git a/neoforge/build.gradle.kts b/neoforge/build.gradle.kts index 53cf940d5..e79d2e099 100644 --- a/neoforge/build.gradle.kts +++ b/neoforge/build.gradle.kts @@ -99,7 +99,7 @@ neoForge { sourceSet = sourceSets.getByName("gametest") systemProperty("neoforge.enabledGameTestNamespaces", "lithium-gametest") - environment("LITHIUM_GAMETEST_RESOURCES", file("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path) + environment("LITHIUM_GAMETEST_RESOURCES", file(gameDirectory.get().asFile).resolve("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path) } create("gametestServer") { type = "gameTestServer" @@ -107,7 +107,7 @@ neoForge { sourceSet = sourceSets.getByName("gametest") systemProperty("neoforge.enabledGameTestNamespaces", "lithium-gametest") - environment("LITHIUM_GAMETEST_RESOURCES", file("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path) + environment("LITHIUM_GAMETEST_RESOURCES", file(gameDirectory.get().asFile).resolve("../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure").path) } }