From 0ab903797dfa7cc5fbdf5199a97df9eb18de323c Mon Sep 17 00:00:00 2001 From: Nameless <85962933+Misfiy@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:21:52 +0200 Subject: [PATCH] Fix Npc (#58) --- EXILED/Exiled.API/Features/Npc.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/EXILED/Exiled.API/Features/Npc.cs b/EXILED/Exiled.API/Features/Npc.cs index 6824cbab9..52f339dea 100644 --- a/EXILED/Exiled.API/Features/Npc.cs +++ b/EXILED/Exiled.API/Features/Npc.cs @@ -5,26 +5,22 @@ // // ----------------------------------------------------------------------- -#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; @@ -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); } }