Skip to content

Commit 74eef68

Browse files
committed
Fix FMJ and CodecSerializable comments
1 parent 669b04d commit 74eef68

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

common/src/main/resources/mods.groovy

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ MultiplatformModsDotGroovy.make {
4646
}
4747

4848
onFabric {
49-
modmenu = [
50-
'badges':['library'],
51-
'parent':[
52-
'id':'groovyduvet',
53-
'name':'GroovyDuvet',
54-
'description':'Language adapter and wrapper libraries for Groovy mods on Quilt',
55-
'icon':'assets/groovyduvet/icon.png',
56-
'badges':['library']
49+
custom {
50+
modmenu = [
51+
'badges': ['library'],
52+
'parent': [
53+
'id' : 'groovyduvet',
54+
'name' : 'GroovyDuvet',
55+
'description': 'Language adapter and wrapper libraries for Groovy mods on Quilt/Fabric'
56+
]
5757
]
58-
]
58+
}
5959
}
6060
}

common/src/transform/groovy/org/groovymc/cgl/impl/transform/codec/CodecSerializableTransformation.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ class CodecSerializableTransformation extends AbstractASTTransformation implemen
8181

8282
Expression[] grouping = new Expression[assembler.parameters.size()]
8383

84+
def camelToSnake = getMemberBooleanValue(anno, 'camelToSnake', true)
85+
8486
for (int i = 0; i < assembler.parameters.size(); i++) {
85-
grouping[i] = assembleExpression(anno, parent, assembler.parameters[i], getMemberBooleanValue(anno, 'camelToSnake', true))
87+
grouping[i] = assembleExpression(anno, parent, assembler.parameters[i], camelToSnake)
8688
}
8789

8890
// Parse and merge comments
@@ -115,7 +117,7 @@ class CodecSerializableTransformation extends AbstractASTTransformation implemen
115117
}
116118

117119
if (docs != '') {
118-
comments[name] = docs
120+
comments[camelToSnake? toSnakeCase(name) : name] = docs
119121
}
120122
}
121123

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ managedversioning = "1.2.8"
2020
registrationutils = "1.20.2-0.1.2"
2121
enhancedgroovy = "0.2.0"
2222

23-
groovybundler = "2.1.1"
23+
groovybundler = "2.1.4"
2424
groovyduvet = "3.1.2"
2525
gml = "5.0.1"
2626

0 commit comments

Comments
 (0)