From f09d2bef53d793383007d7501451add6189729a1 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Thu, 4 Jul 2024 18:04:52 -0700 Subject: [PATCH] Fix AssetMetaCheck compile error --- src/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5c27b660..ef38a8b8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,11 +11,13 @@ use bevy::prelude::*; fn main() { App::new() - // Wasm builds will check for meta files (that don't exist) if this isn't set. - // This causes errors and even panics on web build on itch. - // See https://github.com/bevyengine/bevy_github_ci_template/issues/48. - .insert_resource(AssetMetaCheck::Never) - .add_plugins(DefaultPlugins) + .add_plugins(DefaultPlugins.set(AssetPlugin { + // Wasm builds will check for meta files (that don't exist) if this isn't set. + // This causes errors and even panics on web build on itch. + // See https://github.com/bevyengine/bevy_github_ci_template/issues/48. + meta_check: AssetMetaCheck::Never, + ..default() + })) .add_systems(Startup, setup) .run(); }