new blocks for the same item overwrite last?
Zarius opened this issue ยท 3 comments
Need to test in version 2.0 - will separate blocks for the same item still overwrite?
eg.
ICE:
- tool: ....
etc..
ICE: # in older versions this overwrote the above block rather than adding to it. - world: otherworld...
It will, simply by the nature of YAML. You can't even get around it with aliases, because the merging function for which aliases are useful (the << key) only works for mappings.
You could get around it by changing the basic syntax from this:
BLOCK:
- drop1
- drop2
to this:
- BLOCK:
- drop1
- drop2
- BLOCK2:
- etc
(Note: Github's code tags seem to be broken, so just assume the indentation is there, with drops indented under blocks.)
It would make reading the file a little bit more difficult (since Configuration makes it a bit harder to deal with lists than with mappings) and would completely invalidated all existing 1.x config files. Personally, I don't think it's worth it.