Remove unnecessary duplicate list local to 'listitems.list'

master
AntumDeluge 2017-08-03 16:34:42 -07:00
parent 39776419cf
commit ff7d6f4038
1 changed files with 1 additions and 2 deletions

View File

@ -306,8 +306,7 @@ function listitems.list(player, params, switches, l_type, lower)
l_type = l_type or 'items'
lower = lower == nil or lower == true
local types = {'items', 'entities', 'ores',}
if not listContains(types, l_type) then
if not listContains(known_lists, l_type) then
listitems.logWarn('listitems.listitems called with unknown list type: ' .. tostring(l_type))
return false
end