mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
Fix a multiplayer bug that I cannot reproduce
This commit is contained in:
parent
2232c36182
commit
a62184e0d2
@ -276,7 +276,7 @@ async def connection(ws, path):
|
|||||||
if "other_user" in user and "ws" in user["other_user"]:
|
if "other_user" in user and "ws" in user["other_user"]:
|
||||||
if type == "songsel" or type == "catjump":
|
if type == "songsel" or type == "catjump":
|
||||||
# Change song select position
|
# Change song select position
|
||||||
if user["other_user"]["action"] == "songsel":
|
if user["other_user"]["action"] == "songsel" and type(value) is dict:
|
||||||
value["player"] = user["player"]
|
value["player"] = user["player"]
|
||||||
sent_msg = msgobj(type, value)
|
sent_msg = msgobj(type, value)
|
||||||
await asyncio.wait([
|
await asyncio.wait([
|
||||||
|
Loading…
Reference in New Issue
Block a user