bugfix - crash on player page

This commit is contained in:
Alexander Weber 2017-03-11 16:58:58 +01:00
parent c938f72f40
commit 81fbf3ee35

View File

@ -35,7 +35,9 @@ function filter.register_filter(def)
local self = def
function self:check_item_by_name(itemname)
return self.filter_func(minetest.registered_items[itemname])
if minetest.registered_items[itemname] then
return self.filter_func(minetest.registered_items[itemname])
end
end
function self:check_item_by_def(def)
return self.filter_func(def)