Fix
This commit is contained in:
parent
cdb55ecef1
commit
b5ff99272b
@ -298,10 +298,7 @@ func read_p2p_packet() -> void:
|
|||||||
# Start game packet
|
# Start game packet
|
||||||
if "message" in readable_data and readable_data["message"] == "start_game":
|
if "message" in readable_data and readable_data["message"] == "start_game":
|
||||||
if packet_sender == host_id:
|
if packet_sender == host_id:
|
||||||
print("Received start game packet from host user.")
|
|
||||||
_on_game_started()
|
_on_game_started()
|
||||||
else:
|
|
||||||
printerr("WARNING: Received start game packet from non-host user.")
|
|
||||||
|
|
||||||
# Print the packet to output
|
# Print the packet to output
|
||||||
print("Packet: %s" % readable_data)
|
print("Packet: %s" % readable_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user