diff --git a/patches/server/Rewrite-dataconverter-system.patch b/patches/server/Rewrite-dataconverter-system.patch index 290f320298..7e6e24121a 100644 --- a/patches/server/Rewrite-dataconverter-system.patch +++ b/patches/server/Rewrite-dataconverter-system.patch @@ -439,7 +439,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + 3825, + 3828, + 3833 -+ // All up to 1.20.6-rc1 ++ // All up to 1.20.6 + }; + Arrays.sort(converterVersions); + @@ -1154,6 +1154,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + public static final int V1_20_5_RC3 = 3836; + public static final int V1_20_5 = 3837; + public static final int V1_20_6_RC1 = 3838; ++ public static final int V1_20_6 = 3839; + + private MCVersions() {} +} @@ -2586,8 +2587,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + final String cmdString = cmd.getAsString(); + + if ((actionString.equals("suggest_command") && cmdString.startsWith("/")) || actionString.equals("run_command")) { -+ final Object res = MCTypeRegistry.DATACONVERTER_CUSTOM_TYPE_COMMAND.convert( -+ cmdString, MCVersions.V1_20_4, SharedConstants.getCurrentVersion().getDataVersion().getVersion() ++ final Object res = MCDataConverter.convert( ++ MCTypeRegistry.DATACONVERTER_CUSTOM_TYPE_COMMAND, cmdString, MCVersions.V1_20_4, SharedConstants.getCurrentVersion().getDataVersion().getVersion() + ); + if (res instanceof String newCmd) { + clickEvent.addProperty("value", newCmd);