diff options
| author | mat <git@matdoes.dev> | 2025-12-19 13:07:19 +1100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-19 13:07:19 +1100 |
| commit | b300cd7b36a5ba6f5be58e1942da8e2c866106e6 (patch) | |
| tree | 71f2ff46aae542aa9f78097c9442dea9130be3de /codegen/lib | |
| parent | 7c468692c7adf6c9a4796aa8010f20ced4618327 (diff) | |
| download | azalea-drasl-b300cd7b36a5ba6f5be58e1942da8e2c866106e6.tar.xz | |
smaller EntityDataValue type
Diffstat (limited to 'codegen/lib')
| -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 75ca72e5..1297b9f6 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -557,7 +557,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_owned()' + default = f'"{string_escaped}".into()' elif type_name == "BlockPos": default = f"BlockPos::new{default}" elif type_name == "OptionalBlockPos": # Option<BlockPos> |
