Use a settings object for the main settings
[oweals/minetest.git] / builtin / game / static_spawn.lua
index 10033422639c6d04d2c7a0edf0945f5cddc41de0..b1157b42e9f08c3f62d348952af39dbff5379f52 100644 (file)
@@ -1,10 +1,10 @@
 -- Minetest: builtin/static_spawn.lua
 
 local function warn_invalid_static_spawnpoint()
-       if core.setting_get("static_spawnpoint") and
+       if core.settings:get("static_spawnpoint") and
                        not core.setting_get_pos("static_spawnpoint") then
                core.log("error", "The static_spawnpoint setting is invalid: \""..
-                               core.setting_get("static_spawnpoint").."\"")
+                               core.settings:get("static_spawnpoint").."\"")
        end
 end