Skip to content

Commit

Permalink
refactor(enum-generation): Add filter for blank strings in values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Aug 11, 2024
1 parent a5de0c5 commit 1450b55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generation/src/main/kotlin/EnumGeneration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fun generateEnum(
addSuperinterface(argumentClassName(it))
}

values.removeMinecraftPrefix().forEach { value ->
values.filter(String::isNotBlank).removeMinecraftPrefix().forEach { value ->
addEnumConstant(value.snakeCase().uppercase())
}

Expand All @@ -43,7 +43,6 @@ fun generateEnum(
)
}


additionalEnumCode()

val encoderValue = if (parentArgumentType != null) "\"minecraft:\${value.name.$asString}\"" else null
Expand Down

0 comments on commit 1450b55

Please sign in to comment.