Skip to content

Commit

Permalink
Add alternate srg path (FG changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Sep 7, 2016
1 parent b5e43c9 commit 9948b01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,16 @@ if (System.env.GRADLE_USER_HOME) {
}
ext.mappingsPath = homeDir + 'caches/minecraft/de/oceanlabs/mcp/mcp_' + mappings_channel + '/' + mappings_version + '/'
ext.srgPath = mappingsPath + 'srgs/notch-srg.srg'
ext.altSrgPath = mappingsPath + "$mcVersion/srgs/notch-srg.srg"

jar.doFirst {
if (
!file(mappingsPath + 'fields.csv').exists() ||
!file(mappingsPath + 'methods.csv').exists() ||
!file('./generated/extendsMap.obj').exists() ||
!file(srgPath).exists()
(!file(srgPath).exists() && !file(altSrgPath).exists())
)
throw new Error("Can't find mappings at $mappingsPath and/or $srgPath and/or extendsMap")
throw new Error("Can't find mappings at $mappingsPath and/or $srgPath and/or $altSrgPath and/or extendsMap")
}

jar {
Expand All @@ -111,6 +112,7 @@ jar {
exclude "META-INF/**"
}
from srgPath
from altSrgPath
from mappingsPath + 'methods.csv'
from mappingsPath + 'fields.csv'
from './generated/extendsMap.obj'
Expand Down

1 comment on commit 9948b01

@LunNova
Copy link
Member Author

@LunNova LunNova commented on 9948b01 Sep 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.