Skip to content

Commit

Permalink
FixNpcNoclip
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Aug 4, 2024
1 parent 596a425 commit 310c696
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion EXILED/Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,12 @@ public Player Cuffer
public Vector3 Position
{
get => Transform.position;
set => ReferenceHub.TryOverridePosition(value, Vector3.zero);
set
{
ReferenceHub.TryOverridePosition(value, Vector3.zero);
if (Role is FpcRole fpcRole)
fpcRole.RelativePosition = new(value);
}
}

/// <summary>
Expand Down

0 comments on commit 310c696

Please sign in to comment.