diff --git a/framework_crates/bones_asset/src/server.rs b/framework_crates/bones_asset/src/server.rs index 2d96689276..d94c743400 100644 --- a/framework_crates/bones_asset/src/server.rs +++ b/framework_crates/bones_asset/src/server.rs @@ -328,13 +328,6 @@ impl AssetServer { ); } - if !path_is_metadata(&meta.root) { - anyhow::bail!( - "Root asset must be a JSON or YAML file with a name in the form: \ - [filename].[asset_kind].[yaml|json]" - ); - } - // Load the asset and produce a handle let root_loc = AssetLocRef { path: &meta.root, @@ -372,13 +365,6 @@ impl AssetServer { .context("Could not load pack file")?; let meta: CorePackfileMeta = serde_yaml::from_slice(&packfile_contents)?; - if !path_is_metadata(&meta.root) { - anyhow::bail!( - "Root asset must be a JSON or YAML file with a name in the form: \ - [filename].[asset_kind].[yaml|json]" - ); - } - // Load the asset and produce a handle let root_loc = AssetLocRef { path: &meta.root,