Use inferred value if modid is null/empty.

This commit is contained in:
Daniel Scalzi
2020-06-13 01:22:49 -04:00
parent bf8e420bbd
commit 6626cc1c02

View File

@@ -124,7 +124,7 @@ export class ForgeModStructure17 extends BaseForgeModStructure {
if(this.forgeModMetadata[name] != null) {
const x = this.forgeModMetadata[name]!
if(x.modid === this.EXAMPLE_MOD_ID) {
if(x.modid == null || x.modid === '' || x.modid === this.EXAMPLE_MOD_ID) {
x.modid = crudeInference.name.toLowerCase()
x.name = crudeInference.name
}