diff --git a/src/map.rs b/src/map.rs index 45cb27e..add8b12 100644 --- a/src/map.rs +++ b/src/map.rs @@ -307,8 +307,7 @@ fn spawn_portal_colliders( for portal_entity in portals.iter() { commands .entity(portal_entity) - .insert(Collider::cuboid(0.5, 0.5)) - .insert(Sensor); + .insert((Collider::cuboid(0.5, 0.5), Sensor)); } commands.entity(entity).remove::(); }