diff --git a/package.json b/package.json index 12999738..c4b8aae5 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ }, "dependencies": { "babel-polyfill": "*", - "browserify-zlib": "ipfs/browserify-zlib", + "browserify-zlib-next": "^1.0.1", "classnames": "^2.2.5", "coriolis-data": "EDCD/coriolis-data", "d3": "4.8.0", diff --git a/src/app/shipyard/Ship.js b/src/app/shipyard/Ship.js index 421504f5..d3855cc8 100755 --- a/src/app/shipyard/Ship.js +++ b/src/app/shipyard/Ship.js @@ -1486,8 +1486,8 @@ export default class Ship { let bufsize = 0; for (let i = 0; i < slots.length; i++) { if (slots[i].length > 0 || (blueprints[i] && blueprints[i].id)) { - // Length is 1 for the slot ID, 5 for each modification, and 1 for the end marker - bufsize = bufsize + 1 + (5 * slots[i].length) + 1; + // Length is 1 for the slot ID, 5 for each modification, 1 for the end marker of the modifications and 1 for the end marker of the slot + bufsize = bufsize + 1 + (5 * slots[i].length) + 1 + 1; if (blueprints[i] && blueprints[i].id) { // Additional 10 for the blueprint and grade