Fix syntax error

This commit is contained in:
Timothy Warren 2020-12-24 14:16:49 -05:00
parent 23e8713b6d
commit 40ed85950b

View File

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