diff options
| -rw-r--r-- | server/src/data.rs | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/server/src/data.rs b/server/src/data.rs index a8b712b0..64509f37 100644 --- a/server/src/data.rs +++ b/server/src/data.rs @@ -1,19 +1,19 @@  /*      Undercooked - a game about cooking      Copyright 2024 metamuffin -     +      This program is free software: you can redistribute it and/or modify      it under the terms of the GNU Affero General Public License as published by      the Free Software Foundation, version 3 of the License only. -     +      This program is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      GNU Affero General Public License for more details. -     +      You should have received a copy of the GNU Affero General Public License      along with this program.  If not, see <https://www.gnu.org/licenses/>. -     +  */  use crate::{      interaction::Recipe, @@ -151,7 +151,7 @@ pub fn build_gamedata(      let mut customer_spawn = Vec2::new(0., 0.);      let mut initial_map = HashMap::new();      for (y, line) in map_in.map.iter().enumerate() { -        for (x, tile) in line.trim().char_indices() { +        for (x, tile) in line.trim().chars().enumerate() {              let pos = IVec2::new(x as i32, y as i32);              if tile == map_in.chef_spawn {                  chef_spawn = pos.as_vec2() + Vec2::splat(0.5); | 
