diff options
| author | troido <troido@protonmail.com> | 2020-04-08 16:58:44 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-08 16:58:44 +0200 |
| commit | 950e15f7f7bbf354399c0d710ff8fb195a941e92 (patch) | |
| tree | 5450b0fe2ff2aec2a0d2597495f4a81dcd343ef6 /src/world.rs | |
| parent | d0d71818c70586d7e2fb806ced57f039bd1d12f6 (diff) | |
fix mismatching name
Diffstat (limited to 'src/world.rs')
| -rw-r--r-- | src/world.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/world.rs b/src/world.rs index 5105df2..d7b5555 100644 --- a/src/world.rs +++ b/src/world.rs @@ -96,9 +96,7 @@ impl <'a, 'b>World<'a, 'b> { .unwrap_or_else(|_err| // todo: what if player exists but can't be loaded for another reason? PlayerState::new(playerid.clone()) ); - if &state.id != playerid { - return Err(aerr!("Player ids do not match. Wanted {:?}, got {:?}", playerid, state.id)); - } + state.id = playerid.clone(); if state.room == Some(purgatory::purgatory_id()){ state.respawn(); } |
