From bd1e50b00768cffc5c7df5e8b6b023d1df6e36b8 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Tue, 3 Dec 2024 14:57:31 +0100 Subject: [PATCH] Save default value --- mods/PLAYER/mcl_gamemode/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/PLAYER/mcl_gamemode/init.lua b/mods/PLAYER/mcl_gamemode/init.lua index bdce6ca74..3f7b9cafa 100644 --- a/mods/PLAYER/mcl_gamemode/init.lua +++ b/mods/PLAYER/mcl_gamemode/init.lua @@ -47,6 +47,7 @@ function mcl_gamemode.get_gamemode(player) local gm = player:get_meta():get_string("gamemode") if gm == "" then + player:get_meta():set_string("gamemode", "survival") return "survival" else ---@diagnostic disable-next-line: return-type-mismatch