diff --git a/scripts/networking.gd b/scripts/networking.gd index 459c10d..e1c3740 100644 --- a/scripts/networking.gd +++ b/scripts/networking.gd @@ -41,7 +41,7 @@ func create_server(port, maxPlayers): ### NOT WORKING YET, THIS SIGNAL SEEMS TO BE CALLED WHEN CLIENT LOOSES CONNECTION TO SERVER NOT WHEN SERVER LOOSES CONNECTION TO CLIENT (sometimes???) peer.peer_disconnected.connect( func(peer_id): - rpc("disconnect_peer_from_server", peer_id) + rpc_id(peer_id, "disconnect_peer_from_server", peer_id) )