Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparently plugWhitelist can be missing now #369

Merged
merged 4 commits into from
May 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Apparently plugWhitelist can be missing now
  • Loading branch information
bhollis committed May 24, 2022
commit 5667575a61422ac4cf9280d518f8ec194dca1959
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