mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Use deserialised row keys in config tables (#7962)
This commit is contained in:
@@ -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));
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
|
Reference in New Issue
Block a user