Don't print warning when trying to craft nothing

This commit is contained in:
Wuzzy 2019-10-24 19:39:49 +02:00
parent f6000090c9
commit 08d1543238

View File

@ -152,6 +152,9 @@ end
function crafting.craft(player, wanted, wanted_count, output, items)
-- `output` can be any ItemStack value
-- Duplicate items in `items` should work correctly
if wanted:is_empty() then
return nil
end
local craftdef = crafting.registered_crafts[wanted:to_string()]