Skip to content

Commit

Permalink
i'm retarded
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Dec 6, 2024
1 parent e6a91a4 commit 6aff355
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pathofexile-dat",
"version": "11.0.0",
"version": "11.0.1",
"type": "module",
"bin": "./dist/cli/run.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/cli/export-tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function importHeaders (
const validFor = (config.patch?.startsWith('4.') || config.steam?.includes('Path of Exile 2'))
? ValidFor.PoE2
: ValidFor.PoE1
const sch = schema.tables.find(s => s.name === name && s.validFor === validFor)!
const sch = schema.tables.find(s => s.name === name && (s.validFor & validFor))!
let offset = 0
for (const column of sch.columns) {
headers.push({
Expand Down
2 changes: 1 addition & 1 deletion viewer/src/app/dat-viewer/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class DatSchemasDatabase {
: ValidFor.PoE1
name = name.toLowerCase()
const sch = this.publicSchema.value
.find(s => s.name.toLowerCase() === name && s.validFor === validFor)
.find(s => s.name.toLowerCase() === name && (s.validFor & validFor))

return sch && fromPublicSchema(sch)
}
Expand Down

0 comments on commit 6aff355

Please sign in to comment.