diff --git a/src/Connection.ts b/src/Connection.ts index 3c3685a..c6d6319 100644 --- a/src/Connection.ts +++ b/src/Connection.ts @@ -40,7 +40,7 @@ import { } from "node:crypto"; import { measureExecutionTime } from "./vendor/debug-tools"; -import { Client as RakNetClient, type Advertisement } from "../../Raknet/src/"; +import { Client as RakNetClient, type Advertisement } from "@sanctumterra/raknet"; declare global { diff --git a/src/tools/offline.ts b/src/tools/offline.ts index de46a9c..020e973 100644 --- a/src/tools/offline.ts +++ b/src/tools/offline.ts @@ -18,7 +18,7 @@ const client = new Client({ deviceOS: DeviceOS.Win10, }); -client.raknet.socket.on("error", (error) => Logger.error(error)); +client.raknet.socket.on("error", (error: Error) => Logger.error(error)); Logger.info("Connecting to server..."); try { diff --git a/src/vendor/PacketSorter.ts b/src/vendor/PacketSorter.ts index 8770aed..c90c263 100644 --- a/src/vendor/PacketSorter.ts +++ b/src/vendor/PacketSorter.ts @@ -35,7 +35,7 @@ import { AddEntityPacket } from "./packets/AddActorPacket"; import { AddItemActorPacket } from "./packets/add-item-actor"; import { LegacyTelemetryEventPacket } from "./packets/LegacyTelemetryEventPacket"; import { UpdateSubChunkBlocksPacket } from "./packets/UpdateSubChunkBlocksPacket"; -import { Frame } from "../../../Raknet/src/"; +import { Frame } from "@sanctumterra/raknet"; export class PacketSorter { constructor(private readonly connection: Connection) {