File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
-- Minetest: builtin/static_spawn.lua
2
2
3
- local function warn_invalid_static_spawnpoint ( )
4
- if core . settings : get ( " static_spawnpoint " ) and
5
- not core . setting_get_pos ( " static_spawnpoint " ) then
6
- core .log ( " error " , " The static_spawnpoint setting is invalid: \" " ..
7
- core . settings : get ( " static_spawnpoint" ) .. " \" " )
8
- end
3
+ local static_spawnpoint_string = core . settings : get ( " static_spawnpoint " )
4
+ if static_spawnpoint_string and
5
+ static_spawnpoint_string ~= " " and
6
+ not core .setting_get_pos ( " static_spawnpoint" ) then
7
+ error ( ' The static_spawnpoint setting is invalid: " ' ..
8
+ static_spawnpoint_string .. ' " ' )
9
9
end
10
10
11
- warn_invalid_static_spawnpoint ()
12
-
13
11
local function put_player_in_spawn (player_obj )
14
12
local static_spawnpoint = core .setting_get_pos (" static_spawnpoint" )
15
13
if not static_spawnpoint then
You can’t perform that action at this time.
0 commit comments