Skip to content

Commit 9b7d26c

Browse files
committed
test
1 parent ad856dc commit 9b7d26c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ configure(allprojects){
3737
return "com.github.Anuken.Mindustry$module:$mindustryVersion"
3838
}
3939

40+
localBlackhole = new File(rootDir.parent, 'MindustryBlackHoleRenderer').exists()
41+
4042
blackhole = {String module ->
41-
return "com.github.MEEPofFaith$module:$blackHoleRendererVersion"
43+
return "com.github.MEEPofFaith${localBlackhole ? ".MindustryBlackHoleRenderer" : ""}$module:$blackHoleRendererVersion"
4244
}
4345
}
4446

settings.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ if(JavaVersion.current().ordinal() < JavaVersion.VERSION_17.ordinal()){
1010
}
1111

1212
rootProject.name = modName
13+
14+
if(new File(rootDir.parent, 'MindustryBlackHoleRenderer').exists()){
15+
println("Compiling with local Black Hole Library")
16+
includeBuild("../MindustryBlackHoleRenderer")
17+
}

0 commit comments

Comments
 (0)