mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +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")
|
local gm = player:get_meta():get_string("gamemode")
|
||||||
if gm == "" then
|
if gm == "" then
|
||||||
|
player:get_meta():set_string("gamemode", "survival")
|
||||||
return "survival"
|
return "survival"
|
||||||
else
|
else
|
||||||
---@diagnostic disable-next-line: return-type-mismatch
|
---@diagnostic disable-next-line: return-type-mismatch
|
||||||
|
|
Loading…
Reference in a new issue