aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRui <Rui914@users.noreply.github.com>2015-09-03 01:09:48 +0900
committerest31 <MTest31@outlook.com>2015-09-03 06:10:17 +0200
commitd4938554818aa71aceb0d360f33c6cfd42f67008 (patch)
treefe2392c73cf5c5661346c99eead573c6a3872fbe /builtin
parent196975ba5c11f798851dc89a4a8cf677646e6b39 (diff)
downloadminetest-d4938554818aa71aceb0d360f33c6cfd42f67008.tar.gz
minetest-d4938554818aa71aceb0d360f33c6cfd42f67008.tar.bz2
minetest-d4938554818aa71aceb0d360f33c6cfd42f67008.zip
Small fixes of minetest.has_feature
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/features.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/game/features.lua b/builtin/game/features.lua
index f082b0db8..a5f17e540 100644
--- a/builtin/game/features.lua
+++ b/builtin/game/features.lua
@@ -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