code formatiert

This commit is contained in:
hydrant
2020-08-04 21:51:38 +02:00
parent c4d4b16006
commit 76d72eebdf
40 changed files with 237 additions and 208 deletions

View File

@@ -61,7 +61,7 @@ namespace ReallifeGamemode.Server.Events
int[] clothId = JsonConvert.DeserializeObject<int[]>(JClothId);
user = client.GetUser(context);
var character = user.GetCharacter(context);
var charClothes = context.CharacterClothes.FirstOrDefault(c => c.UserId == user.Id && c.Duty);
@@ -137,7 +137,7 @@ namespace ReallifeGamemode.Server.Events
if (user.GetData<bool>("duty") == false)
{
LoadCharacterDefaults(client);
}
}
}
[RemoteEvent("defaultCharacterCloth")]
@@ -159,10 +159,10 @@ namespace ReallifeGamemode.Server.Events
{
if (cloth.SlotType == 1)
{
if(cloth.ClothId != -1)
if (cloth.ClothId != -1)
{
NAPI.Player.SetPlayerAccessory(player, cloth.SlotId, cloth.ClothId, 0);
}
}
}
else
{