@d2runewizard/d2s 2.0.111 → 2.0.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/d2/items.js +2 -2
  2. package/package.json +1 -1
package/lib/d2/items.js CHANGED
@@ -159,8 +159,8 @@ async function readItems(reader, version, constants, config, char) {
159
159
  if (version === 0x69) {
160
160
  const bitStr = reader.bits.join("");
161
161
  const searchStart = reader.offset;
162
- const marker1 = "100000000 00010000 00000101".replace(/ /g, ""); // search for next item
163
- const marker2 = "100000000 00000000 00000101".replace(/ /g, ""); // search for next item
162
+ const marker1 = "000000001 00001000 10100000".replace(/ /g, ""); // search for next item
163
+ const marker2 = "000000001 00000000 10100000".replace(/ /g, ""); // search for next item
164
164
  const id1 = bitStr.indexOf(marker1, searchStart);
165
165
  const id2 = bitStr.indexOf(marker2, searchStart);
166
166
  const id = id1 !== -1 && id2 !== -1 ? Math.min(id1, id2) : Math.max(id1, id2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d2runewizard/d2s",
3
- "version": "2.0.111",
3
+ "version": "2.0.112",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",