Skip to content

Commit

Permalink
Unload ModNet held Mod references
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Sep 20, 2022
1 parent 01631f2 commit ada8c23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions patches/tModLoader/Terraria/ModLoader/ModNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ internal static void Unload() {
netMods = null;
if (!Main.dedServ && Main.netMode != 1) //disable vanilla client compatibility restrictions when reloading on a client
AllowVanillaClients = false;
ModNet.SetModNetDiagnosticsUI(ModLoader.Mods);
}

internal static void SyncMods(int clientIndex) {
Expand Down

0 comments on commit ada8c23

Please sign in to comment.