there was a recent change in the API, where crafting and mining category can now be nil (but not empty anymore) to prevent any crafting.
My Drones mod was/is using this and had to do this change. viewtopic.php?f=11&t=31588
But then a player reported a problem with your bob library making an error. viewtopic.php?f=93&t=25026&p=201946#p201918
Infact, there is just a need of a check of crafting_categories existence in category-functions.lua :
Code: Select all
function bobmods.lib.machine.has_category(machine, category_in)
local hasit = false
if machine then
>>> if machine.crafting_categories then
for i, category in pairs(machine.crafting_categories) do
if category == category_in then
hasit = true
end
end
>>> end
else
log(machine .. " does not exist.")
end
return hasit
end
Thx.