Only send initial state for things that are controlled and in sockets

This commit is contained in:
xen-42 2025-03-01 21:30:03 -05:00
parent d906d9f8ac
commit 46dc36fa4b

View File

@ -37,11 +37,14 @@ public class QSBSocketedQuantumObject : QSBQuantumObject<SocketedQuantumObject>
{
base.SendInitialState(to);
if (this.ControllingPlayer != 0 && AttachedObject._occupiedSocket != null)
{
this.SendMessage(new SocketStateChangeMessage(
AttachedObject._occupiedSocket.GetWorldObject<QSBQuantumSocket>().ObjectId,
AttachedObject.transform.localRotation)
{ To = to });
}
}
public void MoveToSocket(uint playerId, int socketId, Quaternion localRotation)
{