mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Save default value
This commit is contained in:
parent
1e7f065134
commit
bd1e50b007
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue