Insert default value.
This commit is contained in:
parent
dd84266039
commit
6fdbf4a667
|
@ -226,7 +226,7 @@ fn spawn_colliders(
|
|||
.insert(MapObstruction)
|
||||
.id();
|
||||
if tile.blocks_visibility() {
|
||||
commands.entity(id).insert(BlocksVisibility);
|
||||
commands.entity(id).insert(BlocksVisibility::default());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -323,7 +323,7 @@ fn spawn_colliders(
|
|||
.insert(MapObstruction)
|
||||
.id();
|
||||
if map.at(x as usize, y as usize).blocks_visibility() {
|
||||
commands.entity(id).insert(BlocksVisibility);
|
||||
commands.entity(id).insert(BlocksVisibility::default());
|
||||
}
|
||||
bottom_left = None;
|
||||
bottom_right = None;
|
||||
|
|
Loading…
Reference in New Issue
Block a user