Skip to content

Commit

Permalink
Merge pull request #95 from nezuo/schedule-after-input
Browse files Browse the repository at this point in the history
Schedule systems after input
  • Loading branch information
johanhelsing authored Nov 18, 2023
2 parents 97d76be + 4d4d91f commit 03d11a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use bevy::{
entity::MapEntities,
schedule::{ExecutorKind, LogLevel, ScheduleBuildSettings, ScheduleLabel},
},
input::InputSystem,
prelude::*,
utils::{Duration, HashMap},
};
Expand Down Expand Up @@ -210,7 +211,10 @@ impl<C: Config> Plugin for GgrsPlugin<C> {
..default()
});
})
.add_systems(PreUpdate, schedule_systems::run_ggrs_schedules::<C>)
.add_systems(
PreUpdate,
schedule_systems::run_ggrs_schedules::<C>.after(InputSystem),
)
.add_plugins((
SnapshotSetPlugin,
ChecksumPlugin,
Expand Down

0 comments on commit 03d11a1

Please sign in to comment.