summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2023-10-05 12:35:50 +0100
committerSaracen <SaracenOne@gmail.com>2023-10-05 12:58:17 +0100
commite1803e27d051613f1b55ba988ea5dd89ea5dfd03 (patch)
tree5a779442c5ac551e5db25441c11e9b5816885bc9
parent0ca8542329888e8dccba89d59d3b728090c29991 (diff)
downloadredot-engine-e1803e27d051613f1b55ba988ea5dd89ea5dfd03.tar.gz
Copy network authority when instancing placeholder nodes.
-rw-r--r--scene/main/instance_placeholder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/instance_placeholder.cpp b/scene/main/instance_placeholder.cpp
index b59dad716c..fe23ca1800 100644
--- a/scene/main/instance_placeholder.cpp
+++ b/scene/main/instance_placeholder.cpp
@@ -93,6 +93,7 @@ Node *InstancePlaceholder::create_instance(bool p_replace, const Ref<PackedScene
return nullptr;
}
scene->set_name(get_name());
+ scene->set_multiplayer_authority(get_multiplayer_authority());
int pos = get_index();
for (const PropSet &E : stored_values) {