@d2runewizard/d2s 2.0.111 → 2.0.113
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.
- package/lib/d2/items.js +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 = "
|
|
163
|
-
const marker2 = "
|
|
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);
|