Remove furni limit

This commit is contained in:
Bill 2021-02-17 00:37:02 -05:00
parent 15d99a58fa
commit 224d7ac736
4 changed files with 6 additions and 47 deletions

1
.gitignore vendored
View File

@ -41,6 +41,7 @@ yarn-error.log
testem.log testem.log
/typings /typings
.git .git
error.log
# System Files # System Files
.DS_Store .DS_Store

View File

@ -1,39 +0,0 @@
TypeError: NitroBundle_1.default is not a constructor
TypeError: NitroBundle_1.default is not a constructor
TypeError: NitroBundle_1.default is not a constructor
TypeError: NitroBundle_1.default is not a constructor
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function
TypeError: zlib_1.gzip.__promisify__ is not a function

View File

@ -18,8 +18,6 @@ export class FurnitureDownloader
{ {
try try
{ {
let count = 0;
const furniData = await this.parseFurniData(); const furniData = await this.parseFurniData();
const classNames: string[] = []; const classNames: string[] = [];
@ -36,8 +34,6 @@ export class FurnitureDownloader
const className = furniType.classname.split('*')[0]; const className = furniType.classname.split('*')[0];
const revision = furniType.revision; const revision = furniType.revision;
if(count === 3) return;
if(classNames.indexOf(className) >= 0) continue; if(classNames.indexOf(className) >= 0) continue;
classNames.push(className); classNames.push(className);
@ -45,8 +41,6 @@ export class FurnitureDownloader
try try
{ {
await this.extractFurniture(revision, className, callback); await this.extractFurniture(revision, className, callback);
count ++;
} }
catch (error) catch (error)

View File

@ -1,5 +1,8 @@
import * as ByteBuffer from 'bytebuffer'; import * as ByteBuffer from 'bytebuffer';
import { gzip } from 'zlib'; import { promisify } from 'util';
import * as zlib from 'zlib';
const gzip = promisify(zlib.gzip);
export class NitroBundle export class NitroBundle
{ {
@ -31,7 +34,7 @@ export class NitroBundle
buffer.writeUint16(fileName.length); buffer.writeUint16(fileName.length);
buffer.writeString(fileName); buffer.writeString(fileName);
const compressed = await gzip.__promisify__(file); const compressed = await gzip(file);
buffer.writeUint32(compressed.length); buffer.writeUint32(compressed.length);
buffer.append(compressed); buffer.append(compressed);