Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Commit

Permalink
ChangeAppearance Fix (#2486)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 authored Mar 24, 2024
1 parent 3c38779 commit 2b09db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Exiled.API/Extensions/MirrorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public static void ChangeAppearance(this Player player, RoleTypeId type, IEnumer
else
fpc = playerfpc;

fpc.FpcModule.MouseLook.GetSyncValues(0, out ushort value, out ushort _);
ushort value = 0;
fpc?.FpcModule.MouseLook.GetSyncValues(0, out value, out ushort _);
writer.WriteRelativePosition(player.RelativePosition);
writer.WriteUShort(value);
}
Expand Down

0 comments on commit 2b09db2

Please sign in to comment.