From be02435661b402e1f9196efc388b2af9d57453a7 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:29:25 -0700 Subject: [PATCH] chore: handle addItem of /Lotus/Types/Items/Emotes/** based on path (#2116) Closes #2114 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2116 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/inventoryService.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 4ccd9c5c..f972a608 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -791,6 +791,12 @@ export const addItem = async ( } break; } + case "Items": { + if (typeName.substr(1).split("/")[3] == "Emotes") { + return addCustomization(inventory, typeName); + } + break; + } case "NeutralCreatures": { if (inventory.Horses.length != 0) { logger.warn("refusing to add Horse because account already has one");