Fix error when changing avatar in networking

This commit is contained in:
Pascal Serrarens 2023-05-26 09:32:13 +02:00
parent 143add636f
commit dc166b9246

View File

@ -454,7 +454,7 @@ namespace Passer.Humanoid {
avatarNeckHeight = GetAvatarNeckHeight(); avatarNeckHeight = GetAvatarNeckHeight();
#if pUNITYXR #if pUNITYXR
if (headTarget.unityXR != null) if (isRemote == false && headTarget.unityXR != null)
headTarget.unityXR.UpdateSensorLocation(); headTarget.unityXR.UpdateSensorLocation();
#endif #endif