X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fgame%2Ffeatures.lua;h=2aad458da04b19eefb3e231b7717c8521fa3ae41;hb=d7908ee49480caaab63d05c8a53d93103579d7a9;hp=f3de3ba21a4f0215a164a5ead3567dc2d4b0802c;hpb=1cd512913e4d4ad1fb43d4b6e3d7971bb6c67528;p=dragonfireclient.git diff --git a/builtin/game/features.lua b/builtin/game/features.lua index f3de3ba21..2aad458da 100644 --- a/builtin/game/features.lua +++ b/builtin/game/features.lua @@ -1,27 +1,29 @@ -- Minetest: builtin/features.lua -minetest.features = { +core.features = { glasslike_framed = true, nodebox_as_selectionbox = true, chat_send_player_param3 = true, get_all_craft_recipes_works = true, use_texture_alpha = true, no_legacy_abms = true, + texture_names_parens = true, + area_store_custom_ids = true, } -function minetest.has_feature(arg) +function core.has_feature(arg) if type(arg) == "table" then - missing_features = {} - result = true - for ft, _ in pairs(arg) do - if not minetest.features[ftr] then + local missing_features = {} + local result = true + for ftr in pairs(arg) do + if not core.features[ftr] then missing_features[ftr] = true result = false end end return result, missing_features elseif type(arg) == "string" then - if not minetest.features[arg] then + if not core.features[arg] then return false, {[arg]=true} end return true, {}