Skip to content

Commit 3a11d99

Browse files
app.world access is functions now
- [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.
1 parent 4b14a61 commit 3a11d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ impl Plugin for TilemapRenderingPlugin {
112112

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

115-
app.world
115+
app.world_mut()
116116
.resource_mut::<Assets<StandardTilemapMaterial>>()
117117
.insert(
118-
Handle::<StandardTilemapMaterial>::default(),
118+
Handle::<StandardTilemapMaterial>::default().id(),
119119
StandardTilemapMaterial::default(),
120120
);
121121
}

0 commit comments

Comments
 (0)