mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-25 22:25:53 +02:00
Update to Angular 14
This commit is contained in:
@@ -9,7 +9,7 @@ import { Character, Account } from '../db';
|
||||
import { createClientAndPony } from '../playerUtils';
|
||||
import { CounterService } from '../services/counter';
|
||||
import { CharacterState, ServerConfig } from '../../common/adminInterfaces';
|
||||
import { removeItem, times } from '../../common/utils';
|
||||
import { isDataViewError, removeItem, times } from '../../common/utils';
|
||||
import { timingStart, timingEnd } from '../timing';
|
||||
|
||||
interface Options {
|
||||
@@ -128,7 +128,7 @@ async function joinFakeClient(token: any, server: ServerConfig, world: World): P
|
||||
|
||||
break;
|
||||
} catch (e) {
|
||||
if (e instanceof RangeError || /DataView/.test(e.message)) {
|
||||
if (e instanceof RangeError || isDataViewError(e)) {
|
||||
resizeWriter(packetWriter);
|
||||
} else {
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user