diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-05 18:26:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 18:26:04 +0100 |
commit | 5f42e0d0abad7b2c6d90e56cbc2064b8444e2a07 (patch) | |
tree | cfae86352ab9e429308e0142c6cf072c6b720785 /scene/main | |
parent | eb4b4a317b4aa4e35dcf0749cdcacaa958e0498a (diff) | |
parent | 347d2dfc42967c14daced64706ad6db0b3ebf9b5 (diff) |
Merge pull request #57646 from Faless/mp/4.x_interfaces
[Net] Move RPC, Node cache out of MultiplayerAPI.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/scene_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 0e4a6a4b5c..69d781cbfc 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1165,7 +1165,7 @@ void SceneTree::set_multiplayer(Ref<MultiplayerAPI> p_multiplayer) { ERR_FAIL_COND(!p_multiplayer.is_valid()); multiplayer = p_multiplayer; - multiplayer->set_root_node(root); + multiplayer->set_root_path("/" + root->get_name()); } void SceneTree::_bind_methods() { |