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.
This commit is contained in:
Hornwitser committed 2023-12-21 00:43:12 +01:00
1 parent 6d840fc1e7
commit 1ae686b3ea
1 file changed
+1 -1
+1 -1
View File
@@ -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.
*/