From 5291c8e23b3e046a45f3be354c450762bd532e9e Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Wed, 11 Sep 2024 03:07:55 +0200 Subject: [PATCH] Initialize SyncConfig in PreparePlugin --- src/prepare.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/prepare.rs b/src/prepare.rs index ade1863c..3ef976e0 100644 --- a/src/prepare.rs +++ b/src/prepare.rs @@ -4,7 +4,7 @@ #![allow(clippy::type_complexity)] -use crate::prelude::*; +use crate::{prelude::*, sync::SyncConfig}; use bevy::{ ecs::{ intern::Interned, @@ -77,6 +77,8 @@ pub enum PrepareSet { impl Plugin for PreparePlugin { fn build(&self, app: &mut App) { + app.init_resource::() + .register_type::(); app.configure_sets( self.schedule, (