diff options
| author | troido <troido@protonmail.com> | 2020-02-21 16:27:32 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-21 16:27:32 +0100 |
| commit | e69d9c3b5266fd6f9215d1e3f4a761b8027a785c (patch) | |
| tree | 148ce7e757dacbd058a36785c78a724f96b5ca7f /src/main.rs | |
| parent | ada1c4571a9ba43b15027f126fada55e73901a11 (diff) | |
wrote world code for migrating players
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index c8816bf..310fd0e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,10 +80,10 @@ fn main() { let _ = world.control_player(player, control); } Action::Join(player) => { - world.add_player(player).unwrap(); + world.add_player(&player).unwrap(); } Action::Leave(player) => { - world.remove_player(player).unwrap(); + world.remove_player(&player).unwrap(); } } } |
