clothes improve
This commit is contained in:
@@ -142,7 +142,7 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
User user = player.GetUser();
|
User user = player.GetUser();
|
||||||
using (var context = new DatabaseContext())
|
using (var context = new DatabaseContext())
|
||||||
{
|
{
|
||||||
List<CharacterCloth> charClothes = context.CharacterClothes.ToList().FindAll(c => c.UserId == user.Id && c.Duty == false);
|
List<CharacterCloth> charClothes = context.CharacterClothes.Where(c => c.UserId == user.Id && c.Duty == false).ToList();
|
||||||
NAPI.Player.ClearPlayerAccessory(player, 0);
|
NAPI.Player.ClearPlayerAccessory(player, 0);
|
||||||
NAPI.Player.ClearPlayerAccessory(player, 1);
|
NAPI.Player.ClearPlayerAccessory(player, 1);
|
||||||
NAPI.Player.ClearPlayerAccessory(player, 2);
|
NAPI.Player.ClearPlayerAccessory(player, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user