Fix syntax error

This commit is contained in:
Timothy Warren 2020-12-24 14:16:49 -05:00
parent 23e8713b6d
commit 40ed85950b
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ fn food_spawner(
time: Res<Time>, time: Res<Time>,
mut timer: Local<FoodSpawnTimer>, mut timer: Local<FoodSpawnTimer>,
) { ) {
if timer.0.tick(time.delta_seconds().finished()) { if timer.0.tick(time.delta_seconds()).finished() {
commands commands
.spawn(SpriteBundle { .spawn(SpriteBundle {
material: materials.food_material.clone(), material: materials.food_material.clone(),