Skip to content

Commit

Permalink
app.world access is functions now
Browse files Browse the repository at this point in the history
- [9202](bevyengine/bevy#9202) changed world access to functions. [relevent line](https://github.com/bevyengine/bevy/pull/9202/files#diff-b2fba3a0c86e496085ce7f0e3f1de5960cb754c7d215ed0f087aa556e529f97fR640)
- This also surfaced [12655](bevyengine/bevy#12655) which removed `Into<AssetId<T>>` for `Handle<T>`. using a reference or .id() is the solution here.
  • Loading branch information
ChristopherBiscardi committed Jun 7, 2024
1 parent 4b14a61 commit 3a11d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ impl Plugin for TilemapRenderingPlugin {

app.add_plugins(MaterialTilemapPlugin::<StandardTilemapMaterial>::default());

app.world
app.world_mut()
.resource_mut::<Assets<StandardTilemapMaterial>>()
.insert(
Handle::<StandardTilemapMaterial>::default(),
Handle::<StandardTilemapMaterial>::default().id(),
StandardTilemapMaterial::default(),
);
}
Expand Down

0 comments on commit 3a11d99

Please sign in to comment.