Merge branch 'stable' into develop-1.7.10
This commit is contained in:
@@ -115,6 +115,8 @@ repositories {
|
||||
configurations {
|
||||
shade
|
||||
compile.extendsFrom shade
|
||||
|
||||
shade.exclude group: 'com.google.code.gson', module: 'gson' // provided by MC
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -133,7 +135,7 @@ dependencies {
|
||||
|
||||
def studioVersion = "${(int)(mcVersion/10000)}.${(int)(mcVersion/100)%100}" + (mcVersion%100==0 ? '' : ".${mcVersion%100}")
|
||||
if (studioVersion == '1.8.9') studioVersion = '1.8'
|
||||
shade("com.github.ReplayMod.ReplayStudio:$studioVersion:24a6ad9"){
|
||||
shade("com.github.ReplayMod.ReplayStudio:$studioVersion:464e18a"){
|
||||
exclude group: 'com.google.guava', module: 'guava' // provided by MC
|
||||
exclude group: 'org.projectlombok', module: 'lombok' // runtime only for @SneakyThrows which isn't used
|
||||
}
|
||||
|
||||
@@ -65,7 +65,10 @@ static def convertSource(Map<String, String> kws, Map<String, Integer> vars, Lis
|
||||
}
|
||||
}
|
||||
} else if (trimmed.startsWith(kws.ifdef)) {
|
||||
ifStack.push(null)
|
||||
def result = vars.containsKey(trimmed.substring(kws.ifdef.length()))
|
||||
ifStack.push(result)
|
||||
indentStack.push(getIndent(line))
|
||||
active &= result
|
||||
} else if (trimmed.startsWith(kws.endif)) {
|
||||
if (ifStack.isEmpty()) {
|
||||
throw new ParserException("Unexpected endif in line $n of $fileName")
|
||||
|
||||
Reference in New Issue
Block a user