From 0878d6ec19d63fac3173f813b77a19f64d8ca896 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Mon, 25 Jul 2022 19:35:27 +0100 Subject: [PATCH] mod updated --- TypeScript/13AddTrader/src/mod.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TypeScript/13AddTrader/src/mod.ts b/TypeScript/13AddTrader/src/mod.ts index 23388ea..93bb825 100644 --- a/TypeScript/13AddTrader/src/mod.ts +++ b/TypeScript/13AddTrader/src/mod.ts @@ -2,7 +2,7 @@ import { DependencyContainer } from "tsyringe"; // SPT types import { IPreAkiLoadMod } from "@spt-aki/models/external/IPreAkiLoadMod"; -import { IPostAkiLoadMod } from "@spt-aki/models/external/IPostAkiLoadMod"; +import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { PreAkiModLoader } from "@spt-aki/loaders/PreAkiModLoader"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; @@ -18,13 +18,14 @@ import { ILocaleGlobalBase } from "@spt-aki/models/spt/server/ILocaleBase"; // The new trader config import * as baseJson from "../db/base.json"; -class SampleTrader implements IPreAkiLoadMod, IPostAkiLoadMod { +class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod { mod: string logger: ILogger constructor() { this.mod = "13AddTrader"; } + public preAkiLoad(container: DependencyContainer): void { this.logger = container.resolve("WinstonLogger"); this.logger.debug(`[${this.mod}] Loading... `); @@ -36,7 +37,7 @@ class SampleTrader implements IPreAkiLoadMod, IPostAkiLoadMod { this.logger.debug(`[${this.mod}] Loaded`); } - public postAkiLoad(container: DependencyContainer): void { + public postDBLoad(container: DependencyContainer): void { this.logger.debug(`[${this.mod}] Delayed Loading... `); const databaseServer = container.resolve("DatabaseServer");