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")
|
||||
|
||||
function get_minetest_config( key )
|
||||
if is_46 then
|
||||
get_minetest_config = function( key )
|
||||
minetest.settings:get( key )
|
||||
end
|
||||
return minetest.settings:get( key )
|
||||
else
|
||||
get_minetest_config = core.setting_get -- backwards compatibility
|
||||
return core.setting_get( key ) -- backwards compatibility
|
||||
end
|
||||
end
|
||||
|
||||
function convert_ipv4( str )
|
||||
|
Loading…
x
Reference in New Issue
Block a user