Work Table : fix crash when mod name is not declared in table and one of its node is put

This commit is contained in:
kilbith 2015-09-24 10:38:07 +02:00
parent 714e9cfddf
commit 11872bda9b

View File

@ -97,9 +97,11 @@ function worktable.dig(pos, _)
end end
function worktable.contains(table, element) function worktable.contains(table, element)
if table then
for _, value in pairs(table) do for _, value in pairs(table) do
if value == element then return true end if value == element then return true end
end end
end
return false return false
end end