mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Small fixes of minetest.has_feature
This commit is contained in:
parent
196975ba5c
commit
d493855481
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue