Skip to content

Commit 310c696

Browse files
committed
FixNpcNoclip
1 parent 596a425 commit 310c696

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

EXILED/Exiled.API/Features/Player.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,12 @@ public Player Cuffer
506506
public Vector3 Position
507507
{
508508
get => Transform.position;
509-
set => ReferenceHub.TryOverridePosition(value, Vector3.zero);
509+
set
510+
{
511+
ReferenceHub.TryOverridePosition(value, Vector3.zero);
512+
if (Role is FpcRole fpcRole)
513+
fpcRole.RelativePosition = new(value);
514+
}
510515
}
511516

512517
/// <summary>

0 commit comments

Comments
 (0)