Fixed client console flooding with warnings on RGB color slider changes (#21333)

added reparent bool for this kinds of unequips

Co-authored-by: Yurii Kis <yurii.kis@smartteksas.com>
This commit is contained in:
KISS
2024-01-05 07:04:11 +02:00
committed by GitHub
parent a2cdbda019
commit 920d7068e5
2 changed files with 53 additions and 12 deletions

View File

@@ -148,7 +148,8 @@ namespace Content.Client.Lobby.UI
foreach (var slot in slots)
{
var itemType = gear.GetGear(slot.Name, profile);
if (invSystem.TryUnequip(dummy, slot.Name, out var unequippedItem, true, true))
if (invSystem.TryUnequip(dummy, slot.Name, out var unequippedItem, silent: true, force: true, reparent: false))
{
entMan.DeleteEntity(unequippedItem.Value);
}