Skip to content

Commit b6fe345

Browse files
get_sub_app_mut is now an Option
in [9202](https://github.com/StarArawn/bevy_ecs_tilemap/pull/bevyengine/bevy/pull/9202) SubApp access has changed
1 parent d234b18 commit b6fe345

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/render/material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ where
116116
}
117117

118118
fn finish(&self, app: &mut App) {
119-
if let Ok(render_app) = app.get_sub_app_mut(RenderApp) {
119+
if let Some(render_app) = app.get_sub_app_mut(RenderApp) {
120120
render_app
121121
.add_render_command::<Transparent2d, DrawTilemapMaterial<M>>()
122122
.init_resource::<MaterialTilemapPipeline<M>>()

src/render/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ impl Plugin for TilemapRenderingPlugin {
212212
);
213213

214214
let render_app = match app.get_sub_app_mut(RenderApp) {
215-
Ok(render_app) => render_app,
216-
Err(_) => return,
215+
Some(render_app) => render_app,
216+
None => return,
217217
};
218218

219219
render_app.init_resource::<TilemapPipeline>();

0 commit comments

Comments
 (0)