From 3f40e94235164dacdb4c62e3d6ae045b72898183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 10 Dec 2023 17:22:40 -0600 Subject: [PATCH] feat: cleanup x2 --- src/core/blitz/SCPGStream.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/blitz/SCPGStream.ts b/src/core/blitz/SCPGStream.ts index 1ac7f6c71..9713b7b09 100644 --- a/src/core/blitz/SCPGStream.ts +++ b/src/core/blitz/SCPGStream.ts @@ -1,4 +1,4 @@ -import { range } from 'lodash'; +import { times } from 'lodash'; import { readDVPL } from './readDVPL'; import { readDVPLFile } from './readDVPLFile'; @@ -251,7 +251,7 @@ export class SCPGStream { if (types.includes(type)) { vertices.push({ type, - value: range(size + 1).map(() => verticesStream.consumeFloat()), + value: times(size + 1).map(() => verticesStream.consumeFloat()), }); return true; @@ -395,8 +395,6 @@ export class SCPGStream { } case KAType.UNCONFIRMED_TRANSFORM: { - if (!stringTable) throw new Error('No string table provided'); - const position = this.consumeVector3(); const scale = this.consumeVector3(); const rotation = this.consumeVector3();