diff --git a/Command/Command/Cmd/CommandGiveall.cs b/Command/Command/Cmd/CommandGiveall.cs index dac70a05..6d3b17cc 100644 --- a/Command/Command/Cmd/CommandGiveall.cs +++ b/Command/Command/Cmd/CommandGiveall.cs @@ -127,7 +127,9 @@ public class CommandGiveall : ICommand var materialList = GameData.ItemConfigData.Values; var items = new List(); foreach (var material in materialList) - if (material.ItemMainType == ItemMainTypeEnum.Material || material.ItemSubType == ItemSubTypeEnum.Food) + if (material.ItemMainType == ItemMainTypeEnum.Material || + material.ItemSubType == ItemSubTypeEnum.Food || + material.ItemSubType == ItemSubTypeEnum.FindChest) items.Add(new ItemData { ItemId = material.ID, diff --git a/GameServer/Game/Inventory/InventoryManager.cs b/GameServer/Game/Inventory/InventoryManager.cs index 247ab738..d59ca7b9 100644 --- a/GameServer/Game/Inventory/InventoryManager.cs +++ b/GameServer/Game/Inventory/InventoryManager.cs @@ -76,6 +76,7 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player) break; case ItemSubTypeEnum.Food: case ItemSubTypeEnum.Book: + case ItemSubTypeEnum.FindChest: itemData = await PutItem(itemId, count); break; }