From 1abbafc3308f11879fe580c96afbc9ae0142921d Mon Sep 17 00:00:00 2001 From: Michael Hillcox Date: Fri, 21 Apr 2023 19:00:12 +0100 Subject: [PATCH] Fixed #31 crude but effective rejection of empty modid --- scripts/src/lib/Template.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/src/lib/Template.svelte b/scripts/src/lib/Template.svelte index 1c1c2926..c529887b 100644 --- a/scripts/src/lib/Template.svelte +++ b/scripts/src/lib/Template.svelte @@ -92,7 +92,7 @@ } async function generate() { - if (modIdErrors != undefined) { + if (modIdErrors != undefined || modid === "") { return; } @@ -156,6 +156,10 @@ {/if} + + {#if modid === ""} +

The Modname can not be empty!

+ {/if} {#if customModId != undefined}