Skip to content

Commit

Permalink
Reload MFSSettings via ModuleManagerPostLoad
Browse files Browse the repository at this point in the history
Fixes #99
Reloading the database in various scenes might not be a well-handled idea.
  • Loading branch information
DRVeyl committed Jul 3, 2022
1 parent 30593d2 commit b22fed7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Tanks/MFSSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ public static void ModuleManagerPostLoad()
{
resourceVsps.Clear();
resourceConductivities.Clear();

resourceGasses.Clear();
public static void Initialize ()
{
// fill vsps & conductivities
foreach (ConfigNode n in GameDatabase.Instance.GetConfigNodes("RESOURCE_DEFINITION"))
{
Expand Down

0 comments on commit b22fed7

Please sign in to comment.