From 98b65200d8f2d1ac9a1a49328e542e0cbfdbc331 Mon Sep 17 00:00:00 2001 From: froobynooby Date: Tue, 14 Jun 2022 06:20:43 +0930 Subject: [PATCH] Use deserialised row keys in config tables (#7962) --- patches/server/Paper-config-files.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/Paper-config-files.patch b/patches/server/Paper-config-files.patch index 66dd017c84..654bfcc150 100644 --- a/patches/server/Paper-config-files.patch +++ b/patches/server/Paper-config-files.patch @@ -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 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)); + } + } +