projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196975b
)
Small fixes of minetest.has_feature
author
Rui
<Rui914@users.noreply.github.com>
Wed, 2 Sep 2015 16:09:48 +0000
(
01:09
+0900)
committer
est31
<MTest31@outlook.com>
Thu, 3 Sep 2015 04:10:17 +0000
(06:10 +0200)
builtin/game/features.lua
patch
|
blob
|
history
diff --git
a/builtin/game/features.lua
b/builtin/game/features.lua
index f082b0db8e2f131232c378c8c287221f520bbadc..a5f17e54043c3966e37beef07b7a73e42c43d40e 100644
(file)
--- 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 ft
r
in pairs(arg) do
if not core.features[ftr] then
missing_features[ftr] = true
result = false