mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
Make my_id not return an Option
This commit is contained in:
parent
17103adc97
commit
959e7fc88e
3 changed files with 18 additions and 28 deletions
|
@ -1233,7 +1233,7 @@ fn add_per_status_ui(
|
|||
fn peer_role(peer: net::omni::OmniPeerId, netman: &Arc<net::NetManager>) -> String {
|
||||
if peer == netman.peer.host_id() {
|
||||
tr("player_host")
|
||||
} else if Some(peer) == netman.peer.my_id() {
|
||||
} else if peer == netman.peer.my_id() {
|
||||
tr("player_me")
|
||||
} else {
|
||||
tr("player_player")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue