Consolidate inserts.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2022-12-19 20:04:51 -06:00
parent ad31b1220c
commit 1e9860e3a1

View File

@ -307,8 +307,7 @@ fn spawn_portal_colliders<D: 'static + Clone + Default + Send + Sync>(
for portal_entity in portals.iter() { for portal_entity in portals.iter() {
commands commands
.entity(portal_entity) .entity(portal_entity)
.insert(Collider::cuboid(0.5, 0.5)) .insert((Collider::cuboid(0.5, 0.5), Sensor));
.insert(Sensor);
} }
commands.entity(entity).remove::<SpawnColliders>(); commands.entity(entity).remove::<SpawnColliders>();
} }