Small fixes of minetest.has_feature

This commit is contained in:
Rui 2015-09-03 01:09:48 +09:00 committed by Nils Dagsson Moskopp
parent 4c9302c8a2
commit 55ccf6bce8
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 3 deletions

View File

@ -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