mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
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:
1 parent
6d840fc1e7
commit
1ae686b3ea
1 file changed
+1
-1
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user