mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Fix resource id 0
This commit is contained in:
1 parent
055bddc22c
commit
380682d175
1 file changed
+3
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user