XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

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>

be024356
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -0
Modified src/services/inventoryService.ts +6 -0
@@ -791,6 +791,12 @@ export const addItem = async (
791 791 }
792 792 break;
793 793 }
794 case "Items": {
795 if (typeName.substr(1).split("/")[3] == "Emotes") {
796 return addCustomization(inventory, typeName);
797 }
798 break;
799 }
794 800 case "NeutralCreatures": {
795 801 if (inventory.Horses.length != 0) {
796 802 logger.warn("refusing to add Horse because account already has one");