diff --git a/src/lib.rs b/src/lib.rs index 27f0a3a..0cd0683 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -192,7 +192,11 @@ impl GameServer { } => { let token_id = self.game.create_token(map_id, character, img_path.clone(), x, y); _ = broadcast.send(( - Some(id.clone()), + if map_id == self.game.current_scene() { + None + } else { + Some(id.clone()) + }, api::Response::SpawnToken(SpawnToken { token_id, x,