forked from OpenWF/SpaceNinjaServer
chore: handle addItem of /Lotus/Types/Items/Emotes/** based on path (#2116)
Closes #2114 Reviewed-on: OpenWF/SpaceNinjaServer#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:
parent
20c4092dfe
commit
be02435661
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user