diff options
| author | mat <git@matdoes.dev> | 2025-12-11 18:04:14 -1400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-11 18:04:14 -1400 |
| commit | 918214e8ba4eae65daf5d2da17aa0022f2ae5212 (patch) | |
| tree | 6e3a689960c478f3a398cb0e6bc988aff22e2815 /codegen/lib/code/entity.py | |
| parent | e2c7132dfb6a513b28a061bacb7a3cd9386f9706 (diff) | |
| download | azalea-drasl-918214e8ba4eae65daf5d2da17aa0022f2ae5212.tar.xz | |
fix data component codegen
Diffstat (limited to 'codegen/lib/code/entity.py')
| -rw-r--r-- | codegen/lib/code/entity.py | 2 |
1 files changed, 1 insertions, 1 deletions
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<EntityDataValue> 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<BlockPos> |
