bugfix - crash on player page
This commit is contained in:
parent
c938f72f40
commit
81fbf3ee35
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user