From bdf878d7ae671030b6e0348837555782d172742c Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 9 Mar 2020 21:37:49 +0100 Subject: [PATCH] fixfixfix --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 10b0cd4e..d7a9e899 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -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); } }