diff --git a/format/yaml/src/main/java/org/spongepowered/configurate/yaml/YamlRepresenter.java b/format/yaml/src/main/java/org/spongepowered/configurate/yaml/YamlRepresenter.java index 7945aef7..10d662d3 100644 --- a/format/yaml/src/main/java/org/spongepowered/configurate/yaml/YamlRepresenter.java +++ b/format/yaml/src/main/java/org/spongepowered/configurate/yaml/YamlRepresenter.java @@ -58,7 +58,7 @@ public Node representData(final Object nodeObject) { for (Map.Entry ent : node.childrenMap().entrySet()) { // SnakeYAML supports both key and value comments. Add the comments on the key final Node value = represent(ent.getValue()); - final Node key = represent(String.valueOf(ent.getKey())); + final Node key = represent(ent.getKey()); key.setBlockComments(value.getBlockComments()); value.setBlockComments(Collections.emptyList());