Fix pathing

This commit is contained in:
2025-05-12 21:49:10 +01:00
parent e2ccd0cead
commit a83f71addd
3 changed files with 55 additions and 28 deletions
+9 -7
View File
@@ -581,12 +581,14 @@ impl FixtureTilePrefab {
}
}
pub fn spawn(self, commands: &mut Commands) {
commands.spawn((
self.tile,
self.transform,
self.visibility,
self.needs_occluded,
));
pub fn spawn(self, commands: &mut Commands) -> Entity {
commands
.spawn((
self.tile,
self.transform,
self.visibility,
self.needs_occluded,
))
.id()
}
}