summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-04 16:24:16 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-05 02:00:23 +0100
commit347d2dfc42967c14daced64706ad6db0b3ebf9b5 (patch)
tree57d7a28a4b1d578f3cfb942b3119caa9871184f5 /scene/main
parent3db1d689ce11507d9597bb434891da95168f2c69 (diff)
[Net] Move RPC, Node cache out of MultiplayerAPI.
Now uses two interfaces so it can be overridden in the future, and core no longer depends on Node. The interfaces are implements in scene/multiplayer. Replaces root_node with root_path. Remove all Node references from MultiplayerAPI.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/scene_tree.cpp2
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() {