From 1d82ed842de6622d6e6c48c1c6a3c9289bcffedd Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 19 Dec 2025 12:13:06 +1200 Subject: fix some wrong entity variants and make apply_metadata functions private --- codegen/lib/code/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen/lib/code') diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py index 9d9e7733..f6ca7c7b 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -386,7 +386,7 @@ impl From for UpdateMetadataError { # } code.append(f"impl {entity_struct_name} {{") code.append( - " pub fn apply_metadata(entity: &mut bevy_ecs::system::EntityCommands, d: EntityDataItem) -> Result<(), UpdateMetadataError> {" + " fn apply_metadata(entity: &mut bevy_ecs::system::EntityCommands, d: EntityDataItem) -> Result<(), UpdateMetadataError> {" ) code.append(" match d.index {") -- cgit v1.2.3