From fb63cd6bd81e6173900d4478dae2e8e56bbaa161 Mon Sep 17 00:00:00 2001 From: RebeccaNod1 Date: Fri, 8 May 2026 17:51:42 -0600 Subject: [PATCH] Fix Attach and Detach synchronization with CurrentOutfitFolder --- SecondBotEvents/Commands/Inventory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SecondBotEvents/Commands/Inventory.cs b/SecondBotEvents/Commands/Inventory.cs index 97ede5e..80d6baf 100644 --- a/SecondBotEvents/Commands/Inventory.cs +++ b/SecondBotEvents/Commands/Inventory.cs @@ -485,7 +485,7 @@ namespace SecondBotEvents.Commands return Failure("invaild item uuid", [item]); } InventoryItem realitem = HelperInventory.getItemByInventoryUUID(GetClient(), itemuuid); - GetClient().Appearance.AddAttachments([realitem], false, false); + master.CurrentOutfitFolder.Attach(realitem, AttachmentPoint.Default, false); return BasicReply("Ok", [item]); } @@ -520,7 +520,7 @@ namespace SecondBotEvents.Commands } InventoryItem realitem = HelperInventory.getItemByInventoryUUID(GetClient(), itemuuid); - GetClient().Appearance.RemoveFromOutfit(realitem); + master.CurrentOutfitFolder.RemoveFromOutfit(realitem); return BasicReply("Ok", [item]); }