mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-06 22:39:15 +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 dic = (IDictionary)Activator.CreateInstance(dicType);
|
||||
foreach (GameResource gameResource in list)
|
||||
{
|
||||
if (gameResource.Id == 0) continue;
|
||||
dic.Add(gameResource.Id, gameResource);
|
||||
}
|
||||
return dic;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user