Skip to content

Commit

Permalink
Fix Npc (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misfiy authored Aug 12, 2024
1 parent b66b2fd commit 0ab9037
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions EXILED/Exiled.API/Features/Npc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,22 @@
// </copyright>
// -----------------------------------------------------------------------

#nullable enable
namespace Exiled.API.Features
{
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;

using CommandSystem;

using Exiled.API.Enums;
using Exiled.API.Extensions;
using Exiled.API.Features.Components;
using Exiled.API.Features.Roles;
using Footprinting;

using MEC;

using Mirror;

using PlayerRoles;

using UnityEngine;

using Object = UnityEngine.Object;
Expand Down Expand Up @@ -60,8 +56,8 @@ public override Vector3 Position
set
{
base.Position = value;
if (Role is Roles.FpcRole fpcRole)
fpcRole.RelativePosition = new(value);
if (Role is FpcRole fpcRole)
fpcRole.ClientRelativePosition = new(value);
}
}

Expand Down

0 comments on commit 0ab9037

Please sign in to comment.