mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-26 17:30:52 +01:00
Remove furni limit
This commit is contained in:
parent
15d99a58fa
commit
224d7ac736
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,6 +41,7 @@ yarn-error.log
|
||||
testem.log
|
||||
/typings
|
||||
.git
|
||||
error.log
|
||||
|
||||
# System Files
|
||||
.DS_Store
|
||||
|
39
error.log
39
error.log
@ -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
|
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user