|
@@ -3,6 +3,7 @@ using UnityEngine;
|
|
|
using GFGGame;
|
|
|
using System;
|
|
|
using System.Linq;
|
|
|
+using ET;
|
|
|
|
|
|
namespace GFGEditor
|
|
|
{
|
|
@@ -720,6 +721,10 @@ namespace GFGEditor
|
|
|
private static bool CheckIsHasItem(int itemId, int checkId)
|
|
|
{
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(checkId);
|
|
|
+ if (itemCfg == null)
|
|
|
+ {
|
|
|
+ Log.Error($"CheckIsHasItem itemCfg is null. itemId:{itemId} checkId:{checkId}");
|
|
|
+ }
|
|
|
if (itemCfg.itemType == ConstItemType.USEABLE)
|
|
|
{
|
|
|
for (int i = 0; i < itemCfg.itemsArr.Length; i++)
|