mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-12-11 20:15:10 +01:00
Only send initial state for things that are controlled and in sockets
This commit is contained in:
parent
d906d9f8ac
commit
46dc36fa4b
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user