mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-09 07:20:04 -04:00
fix test mod location
Fixes the pipeline on windows
This commit is contained in:
parent
41ccca86e1
commit
b912becb76
@ -30,7 +30,9 @@ class LoadingPhaseTest {
|
||||
private fun create(path: String): LoadingPhase {
|
||||
ModLoader.mods.clear()
|
||||
val phase = LoadingPhase(path)
|
||||
phase::class.java.getFieldOrNull("path")!!.forceSet(phase, File("./src/integration-test/resources/mods/$path"))
|
||||
val rootResources = LoadingPhaseTest::class.java.classLoader.getResource("mods/")
|
||||
|
||||
phase::class.java.getFieldOrNull("path")!!.forceSet(phase, File(rootResources.path.removeSuffix("/") + "/" + path))
|
||||
|
||||
return phase
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user