From 1ae686b3eaa6985fbb788f0d9e380513e6de3fb2 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 21 Dec 2023 00:43:12 +0100 Subject: [PATCH] Don't initalize activeModPack to an empty mod pack Avoid possible use of an unintended empty mod pack by not setting the activeModPack on the Instance until it's loaded in syncMods. This was a leftover from when a newly created empty mod pack was supposed to act as the default when no mod pack was set. --- packages/host/src/Instance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/host/src/Instance.ts b/packages/host/src/Instance.ts index 14346176..c49b3035 100644 --- a/packages/host/src/Instance.ts +++ b/packages/host/src/Instance.ts @@ -108,7 +108,7 @@ export default class Instance extends lib.Link { /** * Mod pack currently running on this instance */ - activeModPack = new lib.ModPack(); + activeModPack!: lib.ModPack; // This is set in syncMods /** * Per player statistics recorded by this instance. */