We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a60848 commit 9e4827bCopy full SHA for 9e4827b
1 file changed
src/Managers/Main.cs
@@ -384,10 +384,16 @@ internal static void Load(GameLogicData gameLogicData, JObject json)
384
{
385
var patchText = new StreamReader(new MemoryStream(file.bytes)).ReadToEnd();
386
var template = new GldConfigTemplate(patchText, mod.id);
387
+ var text = template.Render();
388
+ if (text is null)
389
+ {
390
+ mod.status = Mod.Status.Error;
391
+ continue;
392
+ }
393
Loader.LoadGameLogicDataPatch(
394
mod,
395
json,
- JObject.Parse(template.Render())
396
+ JObject.Parse(text)
397
);
398
continue;
399
}
0 commit comments