From 918214e8ba4eae65daf5d2da17aa0022f2ae5212 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 11 Dec 2025 18:04:14 -1400 Subject: fix data component codegen --- codegen/lib/code/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen/lib/code/entity.py') diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py index 2fc66b0f..02167dfa 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -476,7 +476,7 @@ impl From for UpdateMetadataError { default = "true" if default else "false" elif type_name == "String": string_escaped = default.replace('"', '\\"') - default = f'"{string_escaped}".to_string()' + default = f'"{string_escaped}".to_owned()' elif type_name == "BlockPos": default = f"BlockPos::new{default}" elif type_name == "OptionalBlockPos": # Option -- cgit v1.2.3