Add handling of too large multi groups on import of pmp or adding mods via IPC.

This commit is contained in:
Ottermandias 2023-03-03 18:06:30 +01:00
parent cdc4ee6991
commit 522fc832db
4 changed files with 118 additions and 2 deletions

View file

@ -46,7 +46,6 @@ public partial class Mod
public static MultiModGroup? Load( Mod mod, JObject json, int groupIdx )
{
var options = json[ "Options" ];
var ret = new MultiModGroup()
{
Name = json[ nameof( Name ) ]?.ToObject< string >() ?? string.Empty,
@ -59,6 +58,7 @@ public partial class Mod
return null;
}
var options = json["Options"];
if( options != null )
{
foreach( var child in options.Children() )