mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-18 11:22:15 +01:00
Use deserialised row keys in config tables (#7962)
This commit is contained in:
parent
e4e33753a4
commit
98b65200d8
1 changed files with 2 additions and 2 deletions
|
@ -2461,9 +2461,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ final BasicConfigurationNode rowKeyNode = BasicConfigurationNode.root(node.options());
|
||||
+
|
||||
+ for (final Object key : node.childrenMap().keySet()) {
|
||||
+ rowKeySerializer.deserialize(rowType, rowKeyNode.set(key));
|
||||
+ final R rowKey = rowKeySerializer.deserialize(rowType, rowKeyNode.set(key));
|
||||
+ final Map<C, V> map = columnValueSerializer.deserialize(mapType, node.node(rowKeyNode.raw()));
|
||||
+ map.forEach((column, value) -> table.put((R) rowKeyNode.raw(), column, value));
|
||||
+ map.forEach((column, value) -> table.put(rowKey, column, value));
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
|
|
Loading…
Add table
Reference in a new issue