Skip to content

Commit

Permalink
Apparently plugWhitelist can be missing now
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed May 24, 2022
1 parent e2d65f9 commit a87d079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate-catalyst-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function findCatalystSocketTypeHash(catalystPCH: number | undefined) {
// some socketTypes only exist on crafting versions... Osteo Striga
// This attempts to locate the correct socketType 3x then stops looking
let socketTypeHash = allsockets.find((sockets) =>
sockets.plugWhitelist.find((plug) => plug.categoryHash === catalystPCH)
sockets.plugWhitelist?.find((plug) => plug.categoryHash === catalystPCH)
)?.hash;

item = inventoryItems.find((item) =>
Expand All @@ -138,7 +138,7 @@ function findCatalystSocketTypeHash(catalystPCH: number | undefined) {
notallsockets = notallsockets.filter((sockets) => sockets.hash !== socketTypeHash);

socketTypeHash = notallsockets.find((sockets) =>
sockets.plugWhitelist.find((plug) => plug.categoryHash === catalystPCH)
sockets.plugWhitelist?.find((plug) => plug.categoryHash === catalystPCH)
)?.hash;

item = inventoryItems.find((item) =>
Expand Down

0 comments on commit a87d079

Please sign in to comment.