wait im dumb

This commit is contained in:
JohnCorby 2021-12-30 15:55:22 -08:00
parent a3f9f1391e
commit 0ee1222d3e

View File

@ -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);
}
}
}