Fix animationSync on Cuff

Closes #16
This commit is contained in:
2021-04-07 21:07:22 +02:00
parent 3f502f8bf6
commit 347f3823a7
3 changed files with 29 additions and 18 deletions

View File

@@ -6,6 +6,7 @@ using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using ReallifeGamemode.Database.Entities;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Types;
using ReallifeGamemode.Server.Util;
@@ -340,6 +341,7 @@ namespace ReallifeGamemode.Server.Extensions
nearestCuffPlayer.AddAttachment("handcuffs", true);
player.SyncAnimation("doUncuff");
nearestCuffPlayer.SyncAnimation("getUncuff");
PositionManager.cuffPoints.Remove(nearestCuffPlayer);
}
}
}