Skip to content

Commit 752ee6f

Browse files
dubrowgnmockersf
authored andcommitted
Make run_fixed_main_schedule public (#21277)
Those wanting to customize `TimePlugin` cannot do so because `run_fixed_main_schedule` is not public, so make it public. ## Testing 1. Copy/paste `TimePlugin` to consumer application 2. build now succeeds where previously it failed
1 parent 8b9fa90 commit 752ee6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_time/src/fixed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl Default for Fixed {
236236
/// [`Time<Virtual>`](Virtual) and [`Time::overstep`].
237237
/// You can order your systems relative to this by using
238238
/// [`RunFixedMainLoopSystems`](bevy_app::prelude::RunFixedMainLoopSystems).
239-
pub(super) fn run_fixed_main_schedule(world: &mut World) {
239+
pub fn run_fixed_main_schedule(world: &mut World) {
240240
let delta = world.resource::<Time<Virtual>>().delta();
241241
world.resource_mut::<Time<Fixed>>().accumulate(delta);
242242

0 commit comments

Comments
 (0)