Skip to content

Commit 92de279

Browse files
authored
Update MirrorExtensions.cs
1 parent 6d78115 commit 92de279

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

EXILED/Exiled.API/Extensions/MirrorExtensions.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Exiled.API.Extensions
1616
using System.Text;
1717

1818
using AudioPooling;
19+
using CustomPlayerEffects;
1920
using Exiled.API.Enums;
2021
using Exiled.API.Features.Items;
2122
using Features;
@@ -384,10 +385,6 @@ public static void SendFakeEffectTo(this Player effectOwner, Player target, Effe
384385
{
385386
SendFakeSyncObject(target, effectOwner.NetworkIdentity, typeof(PlayerEffectsController), (writer) =>
386387
{
387-
const uint ChangesCount = 1;
388-
const ulong InitSyncObjectDirtyBit = 0b0001;
389-
const byte OperationId = (byte)SyncList<byte>.Operation.OP_SET;
390-
391388
StatusEffectBase foundEffect = effectOwner.GetEffect(effect);
392389
PlayerEffectsController controller = effectOwner.ReferenceHub.playerEffectsController;
393390
int foundIndex = -1;
@@ -407,9 +404,9 @@ public static void SendFakeEffectTo(this Player effectOwner, Player target, Effe
407404
return;
408405
}
409406

410-
writer.WriteULong(InitSyncObjectDirtyBit);
411-
writer.WriteUInt(ChangesCount);
412-
writer.WriteByte(OperationId);
407+
writer.WriteULong(0b0001);
408+
writer.WriteUInt(1);
409+
writer.WriteByte((byte)SyncList<byte>.Operation.OP_SET);
413410
writer.WriteUInt((uint)foundIndex);
414411
writer.WriteByte(intensity);
415412
});

0 commit comments

Comments
 (0)