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
/typings
.git
error.log
# System Files
.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
{
let count = 0;
const furniData = await this.parseFurniData();
const classNames: string[] = [];
@ -36,8 +34,6 @@ export class FurnitureDownloader
const className = furniType.classname.split('*')[0];
const revision = furniType.revision;
if(count === 3) return;
if(classNames.indexOf(className) >= 0) continue;
classNames.push(className);
@ -45,8 +41,6 @@ export class FurnitureDownloader
try
{
await this.extractFurniture(revision, className, callback);
count ++;
}
catch (error)

View File

@ -1,5 +1,8 @@
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
{
@ -31,7 +34,7 @@ export class NitroBundle
buffer.writeUint16(fileName.length);
buffer.writeString(fileName);
const compressed = await gzip.__promisify__(file);
const compressed = await gzip(file);
buffer.writeUint32(compressed.length);
buffer.append(compressed);