forked from Mirrorlandia_minetest/minetest
Small fixes of minetest.has_feature
This commit is contained in:
parent
196975ba5c
commit
d493855481
@ -12,9 +12,9 @@ core.features = {
|
|||||||
|
|
||||||
function core.has_feature(arg)
|
function core.has_feature(arg)
|
||||||
if type(arg) == "table" then
|
if type(arg) == "table" then
|
||||||
missing_features = {}
|
local missing_features = {}
|
||||||
result = true
|
local result = true
|
||||||
for ft, _ in pairs(arg) do
|
for ftr in pairs(arg) do
|
||||||
if not core.features[ftr] then
|
if not core.features[ftr] then
|
||||||
missing_features[ftr] = true
|
missing_features[ftr] = true
|
||||||
result = false
|
result = false
|
||||||
|
Loading…
Reference in New Issue
Block a user