fixfixfix

This commit is contained in:
hydrant
2020-03-09 21:37:49 +01:00
parent 1499c03f1e
commit bdf878d7ae

View File

@@ -1013,8 +1013,8 @@ namespace ReallifeGamemode.Server.Commands
cloth = new CharacterCloth()
{
Duty = duty,
ClothId = drawable,
SlotId = component,
ClothId = drawable.Value,
SlotId = component.Value,
SlotType = 0,
Texture = texture,
UserId = user.Id,
@@ -1023,11 +1023,11 @@ namespace ReallifeGamemode.Server.Commands
}
else
{
cloth.ClothId = drawable;
cloth.ClothId = drawable.Value;
cloth.Texture = texture;
}
dbContext.SaveChanges();
target.SetClothes(component, drawable, texture);
target.SetClothes(component.Value, drawable.Value, texture);
}
}