From bd2dae0c951f75e9d4a8aaa999407aba6c6dd3e3 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 3 Jun 2017 22:51:32 +0200 Subject: [PATCH] adjusted usage of settings --- build_chest_add_schems_by_directory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_chest_add_schems_by_directory.lua b/build_chest_add_schems_by_directory.lua index 41f0990..b0f93bb 100644 --- a/build_chest_add_schems_by_directory.lua +++ b/build_chest_add_schems_by_directory.lua @@ -157,7 +157,7 @@ end -- TODO: hopfefully, security will get more relaxed regarding reading directories in the future -- if security is enabled, our options to get schematics are a bit limited -if( minetest.setting_getbool( 'secure.enable_security' )) then +if( minetest.settings:get( 'secure.enable_security' )) then local worldpath = minetest.get_worldpath(); local d3 = minetest.get_dir_list( worldpath..'/schems', false ); if( d3 ) then