diff options
| author | troido <troido@protonmail.com> | 2020-09-24 22:18:30 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-24 22:18:30 +0200 |
| commit | 9eb3a9da97e53cee14e585e027badb3783b8e25e (patch) | |
| tree | 4840bc49cbde975289b3e3b663967a368b444f8b /src/systems/migrate.rs | |
| parent | 13b53f3e89bcd6d33a534403162d1b09502bec70 (diff) | |
turned sprite, playerid and roomid into tuple structs
Diffstat (limited to 'src/systems/migrate.rs')
| -rw-r--r-- | src/systems/migrate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/migrate.rs b/src/systems/migrate.rs index f9019d8..2007734 100644 --- a/src/systems/migrate.rs +++ b/src/systems/migrate.rs @@ -28,7 +28,7 @@ impl <'a> System<'a> for Migrate { for (player, position, _moved) in (&players, &positions, &moved).join() { for ent in ground.cells.get(&position.pos).unwrap() { if let Some(exit) = exits.get(*ent) { - let destination = exit.destination.format(hashmap!("{player}" => player.id.name.as_str())); + let destination = exit.destination.format(hashmap!("{player}" => player.id.0.as_str())); emigration.emigrants.push((player.id.clone(), destination, exit.dest_pos.clone())); break; } |
