Fix model parent when multiple participants

This commit is contained in:
Pascal Serrarens 2025-06-06 12:13:15 +02:00
parent 80c4983b34
commit 53416c5ede

View File

@ -194,7 +194,7 @@ namespace RoboidControl.Unity {
Thing[] things = FindObjectsOfType<Thing>(); Thing[] things = FindObjectsOfType<Thing>();
Thing parentThing = null; Thing parentThing = null;
foreach (Thing thing in things) { foreach (Thing thing in things) {
if (thing.core.id == coreThing.id) { if (thing.core.owner.networkId == coreThing.owner.networkId && thing.core.id == coreThing.id) {
parentTransform = thing.transform; parentTransform = thing.transform;
parentThing = thing; parentThing = thing;
} }