Skip to content

Commit

Permalink
Fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
andev0 committed Aug 15, 2024
1 parent d305dd9 commit 913e258
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,13 @@ async function main()

if (recipe.products.length === 1)
{
let resource = satisfactoryData.resources.find(resource => resource.id == recipe.products[0].id);
let resource = satisfactoryData.resources.find(
// I specify type because CD fails otherwise for some reason.
(resource: typeof satisfactoryData.resources[0]) =>
{
return resource.id == recipe.products[0].id;
}
);

if (resource != undefined)
{
Expand Down

0 comments on commit 913e258

Please sign in to comment.