mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-14 04:07:28 +08:00
[Bug fix] API for Link Play
- Fix a bug that API for Link Play cannot work - Add an example breached map #148
This commit is contained in:
@@ -104,7 +104,7 @@ class Room:
|
||||
def to_dict(self) -> dict:
|
||||
p = [i.to_dict() for i in self.players if i.player_id != 0]
|
||||
for i in p:
|
||||
i['is_host'] = i['player_id'] == self.host_id
|
||||
i['is_host'] = i['multiplay_player_id'] == self.host_id
|
||||
return {
|
||||
'room_id': self.room_id,
|
||||
'room_code': self.room_code,
|
||||
|
||||
Reference in New Issue
Block a user