From 5a3c19fb3ead3a340e562e53074743544e9be325 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Sat, 25 Feb 2023 16:36:59 +0100 Subject: [PATCH] fix(dtmm): Fix generating mod data It would generate a syntax error when there was more than one entry in the table. --- crates/dtmm/src/engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/dtmm/src/engine.rs b/crates/dtmm/src/engine.rs index edf5cfb..dea3d53 100644 --- a/crates/dtmm/src/engine.rs +++ b/crates/dtmm/src/engine.rs @@ -189,7 +189,7 @@ fn build_mod_data_lua(state: Arc) -> String { lua.push_str("\",\n"); } - lua.push_str(" }\n }\n"); + lua.push_str(" },\n },\n"); } lua.push('}');