From ed5bf2175a3f77f3affa7b6465b89385eafe92f7 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Fri, 5 Jul 2024 08:52:16 -0700 Subject: [PATCH] Fix crash --- mods/ctf/ctf_modebase/match.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_modebase/match.lua b/mods/ctf/ctf_modebase/match.lua index 784f5010e..258f400c9 100644 --- a/mods/ctf/ctf_modebase/match.lua +++ b/mods/ctf/ctf_modebase/match.lua @@ -74,8 +74,10 @@ local function start_new_match() restart_on_next_match = "" end - ctf_modebase.in_game = false - ctf_modebase.on_match_end() + if ctf_modebase.in_game then + ctf_modebase.in_game = false + ctf_modebase.on_match_end() + end if restart_on_next_match then minetest.chat_send_all(minetest.colorize("red",