From e69d9c3b5266fd6f9215d1e3f4a761b8027a785c Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 21 Feb 2020 16:27:32 +0100 Subject: wrote world code for migrating players --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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(); } } } -- cgit