Skip to content

Commit

Permalink
Move further up
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Jun 25, 2024
1 parent 64e49b5 commit 501027b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Winch/Util/ItemUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ internal static void AddItemFromMeta<T>(string metaPath) where T : ItemData
WinchCore.Log.Error($"Meta file {metaPath} is empty");
return;
}
var item = UtilHelpers.GetScriptableObjectFromMeta<T>(meta, metaPath);
if (AllItemDataDict.ContainsKey((string)meta["id"]))
{
WinchCore.Log.Error($"Duplicate item {(string)meta["id"]} at {metaPath} failed to load");
return;
}
var item = UtilHelpers.GetScriptableObjectFromMeta<T>(meta, metaPath);
if (UtilHelpers.PopulateObjectFromMeta<T>(item, meta, Converters))
{
GameManager.Instance.ItemManager.allItems.Add(item);
Expand Down

0 comments on commit 501027b

Please sign in to comment.