yyl
2025-08-07 f4bb83fc7902cf87ba43b918c87c1d96ee5dbc14
Main/System/KnapSack/Logic/ItemLogicUtility.cs
@@ -1392,18 +1392,19 @@
        getItemEventName = "";
    }
    public void UseItem(string guid, int useCnt = 1, int extra = 0)
    public bool UseItem(string guid, int useCnt = 1, int extra = 0)
    {
        var item = packModel.GetItemByGuid(guid);
        if (item == null)
        {
            return;
            return false;
        }
        var error = 0;
        if (CanUseItem(guid, useCnt, out error))
        {
            UseItemSendServer(guid, useCnt, extra);
            return true;
        }
        else
        {
@@ -1421,6 +1422,7 @@
                default:
                    break;
            }
            return false;
        }
    }