Skip to content

Commit

Permalink
Fix possible crash when switching between branches with different mod…
Browse files Browse the repository at this point in the history
…ules set
  • Loading branch information
thecatcore committed Nov 30, 2024
1 parent 2c3f108 commit 5f044e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ rootProject.name = "legacy-fabric-api"

def loadProject(String path) {
file(path).listFiles().each {
if (it.isDirectory()) {
if (it.isDirectory() && (
file("$it/src/main/resources/fabric.mod.json").exists() ||
file("$it/src/testmod/resources/fabric.mod.json").exists()
)) {
include("${path}_$it.name")

project(":${path}_$it.name").projectDir = it
Expand Down

0 comments on commit 5f044e7

Please sign in to comment.