From a3a33cd683a7f6946f15089b49bde04a5064eed4 Mon Sep 17 00:00:00 2001 From: copygirl Date: Tue, 10 Dec 2024 13:57:23 +0100 Subject: [PATCH] Fix RPC call while not connected --- copyMultiplayer.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyMultiplayer.gd b/copyMultiplayer.gd index 44ef1d3..ad4302f 100644 --- a/copyMultiplayer.gd +++ b/copyMultiplayer.gd @@ -254,7 +254,8 @@ func on_model_changed(model: Node) -> void: await get_tree().process_frame var filename = main_controller._last_loaded_vrm.get_file() - change_model.rpc(version, bone_lookup, blendshape_lookup, filename) + if multiplayer.get_peers().size() > 1: + change_model.rpc(version, bone_lookup, blendshape_lookup, filename) ## Gets the SyncController for the player with the specified peer id.