chore: handle addItem of /Lotus/Types/Items/Emotes/** based on path (#2116)
All checks were successful
Build / build (push) Successful in 47s
Build Docker image / docker (push) Successful in 1m6s

Closes #2114

Reviewed-on: #2116
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-06-06 16:29:25 -07:00 committed by Sainan
parent 20c4092dfe
commit be02435661

View File

@ -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");