Do you wish to register an account?
Browse Source

Fix syntax error

master
Timothy Warren 2 months ago
parent
commit
40ed85950b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main.rs

+ 1
- 1
src/main.rs 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(),


Loading…
Cancel
Save