From 34ec6e60f8dd7eda9e95d1ea8075ac5aba19a6c5 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 15 Jul 2022 05:58:22 -0500 Subject: [PATCH] Prevent foreign key constraint errors --- scripts/server/core.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/server/core.js b/scripts/server/core.js index 256ca4be..a4d28ae2 100644 --- a/scripts/server/core.js +++ b/scripts/server/core.js @@ -16,6 +16,7 @@ let playerResourceReady = new Array(server.maxClients).fill(false); let playerResourceStarted = new Array(server.maxClients).fill(false); let playerInitialized = new Array(server.maxClients).fill(false); let playerGUI = new Array(server.maxClients).fill(false); +let defaultNoAccountId = 479; // =========================================================================== @@ -29,13 +30,14 @@ let playerGUI = new Array(server.maxClients).fill(false); * @property {Array.} items * @property {Array.} itemTypes * @property {Array.} clans - * @property {Array} localeStrings * @property {Array.} triggers * @property {Array.} npcs * @property {Array.} races * @property {Array.} jobs * @property {Array.} gates * @property {Array.} radioStations + * @property {Array} locales + * @property {Array} localeStrings * @property {Array} groundItemCache * @property {Array} groundPlantCache * @property {Array} purchasingVehicleCache @@ -51,7 +53,6 @@ let serverData = { items: [], itemTypes: [], clans: [], - localeStrings: {}, cachedTranslations: [], cachedTranslationFrom: [], triggers: [], @@ -60,6 +61,7 @@ let serverData = { jobs: [], gates: [], radioStations: [], + localeStrings: {}, groundItemCache: [], groundPlantCache: [], purchasingVehicleCache: [], @@ -70,9 +72,7 @@ let serverData = { // =========================================================================== /** - * - * @return {ServerData} - * + * @return {ServerData} serverData */ function getServerData() { return serverData;