Skip to content
Permalink
Browse files

Small fixes of minetest.has_feature

  • Loading branch information
Rui authored and est31 committed Sep 2, 2015
1 parent 196975b commit d4938554818aa71aceb0d360f33c6cfd42f67008
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit d493855

Please sign in to comment.
You can’t perform that action at this time.