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
This commit is contained in:
parent
b79404f7fa
commit
2aef6adf19
@ -10,12 +10,12 @@
|
|||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
local is_46 = minetest.has_feature("add_entity_with_staticdata")
|
local is_46 = minetest.has_feature("add_entity_with_staticdata")
|
||||||
|
|
||||||
|
function get_minetest_config( key )
|
||||||
if is_46 then
|
if is_46 then
|
||||||
get_minetest_config = function( key )
|
return minetest.settings:get( key )
|
||||||
minetest.settings:get( key )
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
get_minetest_config = core.setting_get -- backwards compatibility
|
return core.setting_get( key ) -- backwards compatibility
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function convert_ipv4( str )
|
function convert_ipv4( str )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user