mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-11 16:36:58 -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 {
|
private fun create(path: String): LoadingPhase {
|
||||||
ModLoader.mods.clear()
|
ModLoader.mods.clear()
|
||||||
val phase = LoadingPhase(path)
|
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
|
return phase
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user