Skip to content

Commit

Permalink
prevent the script breaking for bad configs?
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Sep 16, 2023
1 parent 0beea58 commit 4b81112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ end)
local function getDescription(ingredients)
local desc = ""
for _, v in pairs(ingredients) do
desc = desc .. Config.IngredientsLabels[v.item] .. " x" .. v.amount .. " | "
desc = desc .. Config.IngredientsLabels?[v.item] or v.item .. " x" .. v?.amount or 1 .. " | "
end
desc = string.sub(desc, 1, -4)
return desc
Expand Down

0 comments on commit 4b81112

Please sign in to comment.