From b300cd7b36a5ba6f5be58e1942da8e2c866106e6 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 19 Dec 2025 13:07:19 +1100 Subject: smaller EntityDataValue type --- codegen/lib/code/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen') diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py index 75ca72e5..1297b9f6 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -557,7 +557,7 @@ impl From for UpdateMetadataError { default = "true" if default else "false" elif type_name == "String": string_escaped = default.replace('"', '\\"') - default = f'"{string_escaped}".to_owned()' + default = f'"{string_escaped}".into()' elif type_name == "BlockPos": default = f"BlockPos::new{default}" elif type_name == "OptionalBlockPos": # Option -- cgit v1.2.3