mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Fix resource id 0
This commit is contained in:
parent
055bddc22c
commit
380682d175
@ -135,7 +135,10 @@ namespace GrasscutterTools.Game.Data
|
|||||||
var dicType = typeof(Dictionary<,>).MakeGenericType(typeof(int), type);
|
var dicType = typeof(Dictionary<,>).MakeGenericType(typeof(int), type);
|
||||||
var dic = (IDictionary)Activator.CreateInstance(dicType);
|
var dic = (IDictionary)Activator.CreateInstance(dicType);
|
||||||
foreach (GameResource gameResource in list)
|
foreach (GameResource gameResource in list)
|
||||||
|
{
|
||||||
|
if (gameResource.Id == 0) continue;
|
||||||
dic.Add(gameResource.Id, gameResource);
|
dic.Add(gameResource.Id, gameResource);
|
||||||
|
}
|
||||||
return dic;
|
return dic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user