mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
wait im dumb
This commit is contained in:
parent
a3f9f1391e
commit
0ee1222d3e
@ -12,6 +12,8 @@ namespace QSB.EyeOfTheUniverse.EyeStateSync.Messages
|
||||
|
||||
private static void Handler(EyeState state)
|
||||
{
|
||||
MenuManager.Instance.OnEyeStateChange(state);
|
||||
|
||||
if (PlayerTransformSync.LocalInstance)
|
||||
{
|
||||
new EyeStateMessage(state).Send();
|
||||
@ -26,14 +28,12 @@ namespace QSB.EyeOfTheUniverse.EyeStateSync.Messages
|
||||
public override void OnReceiveLocal()
|
||||
{
|
||||
QSBPlayerManager.LocalPlayer.EyeState = Value;
|
||||
MenuManager.Instance.OnEyeStateChange(Value);
|
||||
}
|
||||
|
||||
public override void OnReceiveRemote()
|
||||
{
|
||||
var player = QSBPlayerManager.GetPlayer(From);
|
||||
player.EyeState = Value;
|
||||
MenuManager.Instance.OnEyeStateChange(Value);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user