Skip to content
Snippets Groups Projects
Commit d4938554 authored by Rui's avatar Rui Committed by est31
Browse files

Small fixes of minetest.has_feature

parent 196975ba
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,9 @@ core.features = {
function core.has_feature(arg)
if type(arg) == "table" then
missing_features = {}
result = true
for ft, _ in pairs(arg) do
local missing_features = {}
local result = true
for ftr in pairs(arg) do
if not core.features[ftr] then
missing_features[ftr] = true
result = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment