From 3a11d99af7cbe5a7ab505d2b4b3a3d7a114de488 Mon Sep 17 00:00:00 2001 From: Christopher Biscardi Date: Fri, 7 Jun 2024 01:14:40 -0700 Subject: [PATCH] app.world access is functions now - [9202](https://github.com/bevyengine/bevy/pull/9202) changed world access to functions. [relevent line](https://github.com/bevyengine/bevy/pull/9202/files#diff-b2fba3a0c86e496085ce7f0e3f1de5960cb754c7d215ed0f087aa556e529f97fR640) - This also surfaced [12655](https://github.com/bevyengine/bevy/pull/12655) which removed `Into>` for `Handle`. using a reference or .id() is the solution here. --- src/render/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/mod.rs b/src/render/mod.rs index 1ace3003..09549f88 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -112,10 +112,10 @@ impl Plugin for TilemapRenderingPlugin { app.add_plugins(MaterialTilemapPlugin::::default()); - app.world + app.world_mut() .resource_mut::>() .insert( - Handle::::default(), + Handle::::default().id(), StandardTilemapMaterial::default(), ); }