diff --git a/generation/src/main/kotlin/EnumGeneration.kt b/generation/src/main/kotlin/EnumGeneration.kt index 42270091..21ed1db4 100644 --- a/generation/src/main/kotlin/EnumGeneration.kt +++ b/generation/src/main/kotlin/EnumGeneration.kt @@ -22,7 +22,7 @@ fun generateEnum( addSuperinterface(argumentClassName(it)) } - values.removeMinecraftPrefix().forEach { value -> + values.filter(String::isNotBlank).removeMinecraftPrefix().forEach { value -> addEnumConstant(value.snakeCase().uppercase()) } @@ -43,7 +43,6 @@ fun generateEnum( ) } - additionalEnumCode() val encoderValue = if (parentArgumentType != null) "\"minecraft:\${value.name.$asString}\"" else null