Save default value

This commit is contained in:
AFCMS 2024-12-03 14:57:31 +01:00
parent 1e7f065134
commit bd1e50b007
No known key found for this signature in database
GPG key ID: 8720389A25B652E3

View file

@ -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