fix get key configuration helper access

* seems something related to syntactic sugar seems
  do not works anymore.. as i asked repect some commits
  at https://notabug.org/TenPlus1/nssm/issues/19
main
mckaygerhard 2023-06-15 20:51:45 -04:00
parent b79404f7fa
commit 2aef6adf19
1 changed files with 5 additions and 5 deletions

View File

@ -10,12 +10,12 @@
-----------------------------------------------------
local is_46 = minetest.has_feature("add_entity_with_staticdata")
if is_46 then
get_minetest_config = function( key )
minetest.settings:get( key )
function get_minetest_config( key )
if is_46 then
return minetest.settings:get( key )
else
return core.setting_get( key ) -- backwards compatibility
end
else
get_minetest_config = core.setting_get -- backwards compatibility
end
function convert_ipv4( str )